From 5bd5d440c2573aad812d046be2e0a3c560969457 Mon Sep 17 00:00:00 2001 From: Mario J Maurello Date: Wed, 13 Nov 2024 13:20:03 +0100 Subject: [PATCH] more fixes discovered with integration --- packages/builder/src/contract/contracts/Xtokens/Xtokens.ts | 2 +- packages/config/src/chains.ts | 2 +- packages/sdk/src/getTransferData/getSourceData.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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,