Skip to content

Commit 6424bf9

Browse files
authored
Temporary fix for MOVR gas estimation issue, pending resolution with moonsong labs team (#243)
1 parent fb14d16 commit 6424bf9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/modern-dolls-repeat.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@moonbeam-network/xcm-sdk': patch
3+
---
4+
5+
Temporary fix for MOVR gas estimation issue

packages/sdk/src/getTransferData/getSourceData.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
DestinationFeeConfig,
1010
FeeAssetConfig,
1111
TransferConfig,
12+
movr,
1213
} from '@moonbeam-network/xcm-config';
1314
import { AnyChain, AssetAmount } from '@moonbeam-network/xcm-types';
1415
import {
@@ -132,7 +133,7 @@ export async function getSourceData({
132133

133134
const contract = config.contract?.build({
134135
address: destinationAddress,
135-
amount: balance,
136+
amount: asset === movr ? 1n : balance, // Temporary fix for MOVR gas estimation, pending resolution with moonsong labs team
136137
asset: chain.getAssetId(asset),
137138
destination: destination.chain,
138139
fee: destinationFee.amount,

0 commit comments

Comments
 (0)