We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8daec3 commit fc078b8Copy full SHA for fc078b8
packages/sdk/src/sdk/sdk.deposit.ts
@@ -101,7 +101,7 @@ export async function getDepositData<
101
xcmFeeDecimals,
102
] = await Promise.all([
103
// assetDecimals
104
- polkadot.getAssetDecimals(asset),
+ asset.isNative ? moonChain.decimals : polkadot.getAssetDecimals(asset),
105
// existentialDeposit
106
foreignPolkadot.getExistentialDeposit(),
107
// sourceBalance
@@ -153,7 +153,7 @@ export async function getDepositData<
153
moonChainFee: {
154
balance: xcmFeeBalance,
155
decimals: xcmFeeAssetConfig.asset.isNative
156
- ? meta.decimals
+ ? moonChain.decimals
157
: xcmFeeDecimals,
158
fee: xcmFee,
159
symbol: xcmFeeAssetConfig.asset.originSymbol,
0 commit comments