From c4efd366d778ceb4bea346e5ac19cb41b0e50888 Mon Sep 17 00:00:00 2001 From: Mario J Maurello Date: Wed, 20 Nov 2024 11:52:45 +0100 Subject: [PATCH] -wip- --- packages/config/src/configs/moonbeam.ts | 9 +++++---- .../sdk/src/getTransferData/getTransferData.utils.ts | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/config/src/configs/moonbeam.ts b/packages/config/src/configs/moonbeam.ts index bb24a3d6..11b4ca89 100644 --- a/packages/config/src/configs/moonbeam.ts +++ b/packages/config/src/configs/moonbeam.ts @@ -443,8 +443,9 @@ export const moonbeamConfig = new ChainConfig({ destination: polkadotAssetHub, destinationFee: { amount: 0.2, - asset: usdt, + asset: dot, balance: BalanceBuilder().substrate().assets().account(), + destinationBalance: BalanceBuilder().substrate().system().account(), }, fee: { asset: glmr, @@ -457,11 +458,11 @@ export const moonbeamConfig = new ChainConfig({ contract: ContractBuilder().Xtokens().transferMultiCurrencies(), destination: polkadotAssetHub, destinationFee: { - amount: 0.2, - asset: usdt, + amount: 0.1, + asset: dot, balance: BalanceBuilder().substrate().assets().account(), // TODO uncomment when we apply dot as payment asset - // destinationBalance: BalanceBuilder().substrate().system().account(), + destinationBalance: BalanceBuilder().substrate().system().account(), }, fee: { asset: glmr, diff --git a/packages/sdk/src/getTransferData/getTransferData.utils.ts b/packages/sdk/src/getTransferData/getTransferData.utils.ts index b59df1c7..387ae8ea 100644 --- a/packages/sdk/src/getTransferData/getTransferData.utils.ts +++ b/packages/sdk/src/getTransferData/getTransferData.utils.ts @@ -126,6 +126,7 @@ export function validateSovereignAccountBalances({ ) { return; } + console.log('sovereignAccountBalances', destination.sovereignAccountBalances); const { feeAssetBalance, transferAssetBalance } = destination.sovereignAccountBalances;