diff --git a/packages/builder/src/contract/contracts/Xtokens/Xtokens.ts b/packages/builder/src/contract/contracts/Xtokens/Xtokens.ts index 319ff331..30fda2ac 100644 --- a/packages/builder/src/contract/contracts/Xtokens/Xtokens.ts +++ b/packages/builder/src/contract/contracts/Xtokens/Xtokens.ts @@ -46,7 +46,7 @@ export function Xtokens() { fee.address ? formatAssetIdToERC20(fee.address) : fee.getAssetId(), - fee, + fee.amount, ], ], 1, // index of the fee asset diff --git a/packages/config/src/chains.ts b/packages/config/src/chains.ts index 294cc554..392665f8 100644 --- a/packages/config/src/chains.ts +++ b/packages/config/src/chains.ts @@ -1310,7 +1310,7 @@ export const moonbeam = new EvmParachain({ }), ChainAsset.fromAsset(wifd, { address: '0xffffffff2e1d1ac9ea1686255befe995b31abc96', - decimals: 18, + decimals: 10, ids: { id: '61295607754960722617854661686514597014', }, diff --git a/packages/sdk/src/getTransferData/getSourceData.ts b/packages/sdk/src/getTransferData/getSourceData.ts index 0458c95d..f9b9647e 100644 --- a/packages/sdk/src/getTransferData/getSourceData.ts +++ b/packages/sdk/src/getTransferData/getSourceData.ts @@ -64,7 +64,7 @@ export async function getSourceData({ sourceAddress, }); - const existentialDeposit = await getExistentialDeposit(destination); + const existentialDeposit = await getExistentialDeposit(source); const min = await getAssetMin({ asset, builder: route.source.min,