Skip to content

Commit

Permalink
Temporary fix for MOVR gas estimation issue, pending resolution with …
Browse files Browse the repository at this point in the history
…moonsong labs team (#243)
  • Loading branch information
mmaurello authored May 3, 2024
1 parent fb14d16 commit 6424bf9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/modern-dolls-repeat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@moonbeam-network/xcm-sdk': patch
---

Temporary fix for MOVR gas estimation issue
3 changes: 2 additions & 1 deletion packages/sdk/src/getTransferData/getSourceData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
DestinationFeeConfig,
FeeAssetConfig,
TransferConfig,
movr,
} from '@moonbeam-network/xcm-config';
import { AnyChain, AssetAmount } from '@moonbeam-network/xcm-types';
import {
Expand Down Expand Up @@ -132,7 +133,7 @@ export async function getSourceData({

const contract = config.contract?.build({
address: destinationAddress,
amount: balance,
amount: asset === movr ? 1n : balance, // Temporary fix for MOVR gas estimation, pending resolution with moonsong labs team
asset: chain.getAssetId(asset),
destination: destination.chain,
fee: destinationFee.amount,
Expand Down

0 comments on commit 6424bf9

Please sign in to comment.