Skip to content

Commit

Permalink
Fixed decimals in deposit (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
Elmar Kenigs committed Dec 23, 2022
1 parent c8daec3 commit fc078b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/sdk/src/sdk/sdk.deposit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export async function getDepositData<
xcmFeeDecimals,
] = await Promise.all([
// assetDecimals
polkadot.getAssetDecimals(asset),
asset.isNative ? moonChain.decimals : polkadot.getAssetDecimals(asset),
// existentialDeposit
foreignPolkadot.getExistentialDeposit(),
// sourceBalance
Expand Down Expand Up @@ -153,7 +153,7 @@ export async function getDepositData<
moonChainFee: {
balance: xcmFeeBalance,
decimals: xcmFeeAssetConfig.asset.isNative
? meta.decimals
? moonChain.decimals
: xcmFeeDecimals,
fee: xcmFee,
symbol: xcmFeeAssetConfig.asset.originSymbol,
Expand Down

0 comments on commit fc078b8

Please sign in to comment.