diff --git a/.vscode/settings.json b/.vscode/settings.json index bb3833cb..923367e4 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -52,7 +52,6 @@ "neuro", "neuroweb", "nodl", - "nodle", "npmjs", "onfinality", "parachain", 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/builder/src/extrinsic/pallets/polkadotXcm/polkadotXcm.ts b/packages/builder/src/extrinsic/pallets/polkadotXcm/polkadotXcm.ts index c4da8075..49676399 100644 --- a/packages/builder/src/extrinsic/pallets/polkadotXcm/polkadotXcm.ts +++ b/packages/builder/src/extrinsic/pallets/polkadotXcm/polkadotXcm.ts @@ -195,24 +195,25 @@ export function polkadotXcm() { new ExtrinsicConfig({ module: pallet, func, - getArgs: (extrinsicFunction) => - getPolkadotXcmExtrinsicArgs({ + getArgs: (extrinsicFunction) => { + const version = getExtrinsicArgumentVersion(extrinsicFunction); + + return getPolkadotXcmExtrinsicArgs({ ...params, func: extrinsicFunction, asset: [ { - id: { - Concrete: { - parents: 1, - interior: 'Here', - }, - }, + id: normalizeConcrete(version, { + parents: 1, + interior: 'Here', + }), fun: { Fungible: params.asset.amount, }, }, ], - }), + }); + }, }), }), }; diff --git a/packages/builder/src/extrinsic/pallets/xcmPallet/xcmPallet.ts b/packages/builder/src/extrinsic/pallets/xcmPallet/xcmPallet.ts index cf7d0a04..710d781e 100644 --- a/packages/builder/src/extrinsic/pallets/xcmPallet/xcmPallet.ts +++ b/packages/builder/src/extrinsic/pallets/xcmPallet/xcmPallet.ts @@ -4,7 +4,11 @@ import { type Parents, XcmVersion, } from '../../ExtrinsicBuilder.interfaces'; -import { getExtrinsicAccount } from '../../ExtrinsicBuilder.utils'; +import { + getExtrinsicAccount, + getExtrinsicArgumentVersion, + normalizeConcrete, +} from '../../ExtrinsicBuilder.utils'; import { getPolkadotXcmExtrinsicArgs } from '../polkadotXcm/polkadotXcm.util'; const pallet = 'xcmPallet'; @@ -20,25 +24,25 @@ export function xcmPallet() { new ExtrinsicConfig({ module: pallet, func, - getArgs: (extrinsicFunction) => - getPolkadotXcmExtrinsicArgs({ + getArgs: (extrinsicFunction) => { + const version = getExtrinsicArgumentVersion(extrinsicFunction); + return getPolkadotXcmExtrinsicArgs({ ...params, parents, func: extrinsicFunction, asset: [ { - id: { - Concrete: { - parents: 0, - interior: 'Here', - }, - }, + id: normalizeConcrete(version, { + parents: 0, + interior: 'Here', + }), fun: { Fungible: params.asset.amount, }, }, ], - }), + }); + }, }), }), }; diff --git a/packages/config/src/chains.ts b/packages/config/src/chains.ts index 294cc554..3435ee21 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', }, @@ -1539,29 +1539,6 @@ export const neuroweb = new Parachain({ ], }); -export const nodle = new Parachain({ - assets: [ - ChainAsset.fromAsset(nodl, { - decimals: 11, - ids: { - id: 'NodleNative', - }, - }), - ], - ecosystem: Ecosystem.Polkadot, - genesisHash: - '0x97da7ede98d7bad4e36b4d734b6055425a3be036da2a332ea5a7037656427a21', - key: 'nodle', - name: 'Nodle', - nativeAsset: nodl, - parachainId: 2026, - ss58Format: 37, - ws: [ - 'wss://nodle-rpc.dwellir.com', - 'wss://nodle-parachain.api.onfinality.io/public-ws', - ], -}); - export const originTrailAlphanet = new Parachain({ assets: [ ChainAsset.fromAsset(otp, { @@ -2250,7 +2227,6 @@ export const chainsList: AnyChain[] = [ moonbeam, moonriver, neuroweb, - nodle, originTrailAlphanet, peaqChain, peaqEvm, diff --git a/packages/config/src/xcm-configs/index.ts b/packages/config/src/xcm-configs/index.ts index cffed8c9..ba7b3a22 100644 --- a/packages/config/src/xcm-configs/index.ts +++ b/packages/config/src/xcm-configs/index.ts @@ -27,7 +27,6 @@ import { moonbaseBetaRoutes } from './moonbaseBeta'; import { moonbeamRoutes } from './moonbeam'; import { moonriverRoutes } from './moonriver'; import { neurowebRoutes } from './neuroweb'; -import { nodleRoutes } from './nodle'; import { originTrailAlphanetRoutes } from './originTrailAlphanet'; import { peaqRoutes } from './peaq'; import { peaqAlphanetRoutes } from './peaqAlphanet'; @@ -74,7 +73,6 @@ export const xcmRoutesList: ChainRoutes[] = [ moonbeamRoutes, moonriverRoutes, neurowebRoutes, - nodleRoutes, originTrailAlphanetRoutes, peaqRoutes, peaqEvmRoutes, diff --git a/packages/config/src/xcm-configs/moonbaseAlpha.ts b/packages/config/src/xcm-configs/moonbaseAlpha.ts index d092fea6..0a12c8b8 100644 --- a/packages/config/src/xcm-configs/moonbaseAlpha.ts +++ b/packages/config/src/xcm-configs/moonbaseAlpha.ts @@ -1,4 +1,8 @@ -import { BalanceBuilder, ContractBuilder } from '@moonbeam-network/xcm-builder'; +import { + AssetMinBuilder, + BalanceBuilder, + ContractBuilder, +} from '@moonbeam-network/xcm-builder'; import { agng, alan, @@ -243,6 +247,7 @@ export const moonbaseAlphaRoutes = new ChainRoutes({ amount: 5, asset: tt1, }, + min: AssetMinBuilder().assets().asset(), }, contract: ContractBuilder().Xtokens().transfer(), }, @@ -419,6 +424,7 @@ export const moonbaseAlphaRoutes = new ChainRoutes({ amount: 0.00000001, asset: dev, }, + min: AssetMinBuilder().assets().asset(), }, contract: ContractBuilder().Xtokens().transfer(), }, @@ -442,6 +448,7 @@ export const moonbaseAlphaRoutes = new ChainRoutes({ amount: 0.01, asset: ftmwh, }, + min: AssetMinBuilder().assets().asset(), }, contract: ContractBuilder().Xtokens().transfer(), }, @@ -484,6 +491,7 @@ export const moonbaseAlphaRoutes = new ChainRoutes({ amount: 0.00000001, asset: dev, }, + min: AssetMinBuilder().assets().asset(), }, contract: ContractBuilder().Xtokens().transferWithEvmTo32(), }, @@ -507,6 +515,7 @@ export const moonbaseAlphaRoutes = new ChainRoutes({ amount: 0.01, asset: ftmwh, }, + min: AssetMinBuilder().assets().asset(), }, contract: ContractBuilder().Xtokens().transferWithEvmTo32(), }, diff --git a/packages/config/src/xcm-configs/moonbeam.ts b/packages/config/src/xcm-configs/moonbeam.ts index c8240c88..c969dcc3 100644 --- a/packages/config/src/xcm-configs/moonbeam.ts +++ b/packages/config/src/xcm-configs/moonbeam.ts @@ -1,4 +1,8 @@ -import { BalanceBuilder, ContractBuilder } from '@moonbeam-network/xcm-builder'; +import { + AssetMinBuilder, + BalanceBuilder, + ContractBuilder, +} from '@moonbeam-network/xcm-builder'; import { aca, apillon, @@ -19,7 +23,6 @@ import { ldot, manta, neuro, - nodl, peaq, pen, pha, @@ -52,7 +55,6 @@ import { mantaParachain, moonbeam, neuroweb, - nodle, peaqChain, peaqEvm, pendulum, @@ -83,6 +85,7 @@ export const moonbeamRoutes = new ChainRoutes({ amount: 0.01, asset: glmr, }, + min: AssetMinBuilder().assetRegistry().assetMetadatas(), }, contract: ContractBuilder().Xtokens().transfer(), }, @@ -121,6 +124,7 @@ export const moonbeamRoutes = new ChainRoutes({ amount: 0.000001, asset: glmr, }, + min: AssetMinBuilder().assetRegistry().currencyMetadatas(), }, contract: ContractBuilder().Xtokens().transfer(), }, @@ -178,6 +182,7 @@ export const moonbeamRoutes = new ChainRoutes({ amount: 0.1, asset: glmr, }, + min: AssetMinBuilder().assets().asset(), }, contract: ContractBuilder().Xtokens().transfer(), }, @@ -304,6 +309,7 @@ export const moonbeamRoutes = new ChainRoutes({ amount: 0.256, asset: aseed, }, + min: AssetMinBuilder().assetRegistry().assetMetadatas(), }, contract: ContractBuilder().Xtokens().transfer(), }, @@ -465,6 +471,7 @@ export const moonbeamRoutes = new ChainRoutes({ amount: 0.001, asset: ldot, }, + min: AssetMinBuilder().assetRegistry().assetMetadatas(), }, contract: ContractBuilder().Xtokens().transfer(), }, @@ -491,29 +498,6 @@ export const moonbeamRoutes = new ChainRoutes({ }, contract: ContractBuilder().Xtokens().transfer(), }, - { - source: { - asset: nodl, - balance: BalanceBuilder().substrate().assets().account(), - fee: { - asset: glmr, - balance: BalanceBuilder().substrate().system().account(), - }, - destinationFee: { - balance: BalanceBuilder().substrate().assets().account(), - }, - }, - destination: { - asset: nodl, - balance: BalanceBuilder().substrate().system().account(), - chain: nodle, - fee: { - amount: 0.02, - asset: nodl, - }, - }, - contract: ContractBuilder().Xtokens().transfer(), - }, { source: { asset: neuro, @@ -623,9 +607,10 @@ export const moonbeamRoutes = new ChainRoutes({ chain: polkadotAssetHub, balance: BalanceBuilder().substrate().assets().account(), fee: { - amount: 0.2, + amount: 0.02, asset: usdt, }, + min: AssetMinBuilder().assets().asset(), }, contract: ContractBuilder().Xtokens().transfer(), }, @@ -646,9 +631,10 @@ export const moonbeamRoutes = new ChainRoutes({ chain: polkadotAssetHub, balance: BalanceBuilder().substrate().assets().account(), fee: { - amount: 0.2, + amount: 0.02, asset: usdc, }, + min: AssetMinBuilder().assets().asset(), }, contract: ContractBuilder().Xtokens().transfer(), }, @@ -669,9 +655,11 @@ export const moonbeamRoutes = new ChainRoutes({ chain: polkadotAssetHub, balance: BalanceBuilder().substrate().assets().account(), fee: { - amount: 0.2, + amount: 0.05, asset: usdt, + balance: BalanceBuilder().substrate().assets().account(), // TODO change when DOT pays for fees }, + min: AssetMinBuilder().assets().asset(), }, contract: ContractBuilder().Xtokens().transferMultiCurrencies(), }, @@ -692,13 +680,14 @@ export const moonbeamRoutes = new ChainRoutes({ chain: polkadotAssetHub, balance: BalanceBuilder().substrate().assets().account(), fee: { - amount: 0.2, + amount: 0.05, asset: usdt, balance: BalanceBuilder().substrate().assets().account(), // TODO change when DOT pays for fees // asset: dot, // balance: BalanceBuilder().substrate().system().account(), }, + min: AssetMinBuilder().assets().asset(), }, contract: ContractBuilder().Xtokens().transferMultiCurrencies(), }, @@ -719,9 +708,11 @@ export const moonbeamRoutes = new ChainRoutes({ chain: polkadotAssetHub, balance: BalanceBuilder().substrate().assets().account(), fee: { - amount: 0.2, + amount: 0.05, asset: usdt, + balance: BalanceBuilder().substrate().assets().account(), // TODO change when DOT pays for fees }, + min: AssetMinBuilder().assets().asset(), }, contract: ContractBuilder().Xtokens().transferMultiCurrencies(), }, @@ -742,9 +733,11 @@ export const moonbeamRoutes = new ChainRoutes({ chain: polkadotAssetHub, balance: BalanceBuilder().substrate().assets().account(), fee: { - amount: 0.2, + amount: 0.05, asset: usdt, + balance: BalanceBuilder().substrate().assets().account(), // TODO change when DOT pays for fees }, + min: AssetMinBuilder().assets().asset(), }, contract: ContractBuilder().Xtokens().transferMultiCurrencies(), }, @@ -883,6 +876,7 @@ export const moonbeamRoutes = new ChainRoutes({ amount: 0.00001, asset: vastr, }, + min: AssetMinBuilder().assetRegistry().currencyMetadatas(), }, contract: ContractBuilder().Xtokens().transfer(), }, @@ -906,6 +900,7 @@ export const moonbeamRoutes = new ChainRoutes({ amount: 0.0000001, asset: vdot, }, + min: AssetMinBuilder().assetRegistry().currencyMetadatas(), }, contract: ContractBuilder().Xtokens().transfer(), }, @@ -929,6 +924,7 @@ export const moonbeamRoutes = new ChainRoutes({ amount: 0.00000001, asset: vfil, }, + min: AssetMinBuilder().assetRegistry().currencyMetadatas(), }, contract: ContractBuilder().Xtokens().transfer(), }, @@ -952,6 +948,7 @@ export const moonbeamRoutes = new ChainRoutes({ amount: 0.00000001, asset: vglmr, }, + min: AssetMinBuilder().assetRegistry().currencyMetadatas(), }, contract: ContractBuilder().Xtokens().transfer(), }, @@ -975,6 +972,7 @@ export const moonbeamRoutes = new ChainRoutes({ amount: 0.00000001, asset: vmanta, }, + min: AssetMinBuilder().assetRegistry().currencyMetadatas(), }, contract: ContractBuilder().Xtokens().transfer(), }, @@ -1044,6 +1042,7 @@ export const moonbeamRoutes = new ChainRoutes({ amount: 0.00000001, asset: fil, }, + min: AssetMinBuilder().assetRegistry().currencyMetadatas(), }, contract: ContractBuilder().Xtokens().transfer(), }, @@ -1113,6 +1112,7 @@ export const moonbeamRoutes = new ChainRoutes({ amount: 0.0001, asset: bncs, }, + min: AssetMinBuilder().assetRegistry().currencyMetadatas(), }, contract: ContractBuilder().Xtokens().transfer(), }, @@ -1132,6 +1132,7 @@ export const moonbeamRoutes = new ChainRoutes({ amount: 0.00000001, asset: glmr, }, + min: AssetMinBuilder().assets().asset(), }, contract: ContractBuilder().Xtokens().transfer(), }, @@ -1155,6 +1156,7 @@ export const moonbeamRoutes = new ChainRoutes({ amount: 0.00001, asset: usdcwh, }, + min: AssetMinBuilder().assets().asset(), }, contract: ContractBuilder().Xtokens().transfer(), }, @@ -1178,6 +1180,7 @@ export const moonbeamRoutes = new ChainRoutes({ amount: 0.00001, asset: usdtwh, }, + min: AssetMinBuilder().assets().asset(), }, contract: ContractBuilder().Xtokens().transfer(), }, @@ -1201,6 +1204,7 @@ export const moonbeamRoutes = new ChainRoutes({ amount: 0.00001, asset: dai, }, + min: AssetMinBuilder().assets().asset(), }, contract: ContractBuilder().Xtokens().transfer(), }, @@ -1224,6 +1228,7 @@ export const moonbeamRoutes = new ChainRoutes({ amount: 0.000001, asset: weth, }, + min: AssetMinBuilder().assets().asset(), }, contract: ContractBuilder().Xtokens().transfer(), }, @@ -1247,6 +1252,7 @@ export const moonbeamRoutes = new ChainRoutes({ amount: 0.000001, asset: wbtc, }, + min: AssetMinBuilder().assets().asset(), }, contract: ContractBuilder().Xtokens().transfer(), }, @@ -1289,6 +1295,7 @@ export const moonbeamRoutes = new ChainRoutes({ amount: 0.00000001, asset: glmr, }, + min: AssetMinBuilder().assets().asset(), }, contract: ContractBuilder().Xtokens().transferWithEvmTo32(), }, @@ -1312,6 +1319,7 @@ export const moonbeamRoutes = new ChainRoutes({ amount: 0.00001, asset: usdcwh, }, + min: AssetMinBuilder().assets().asset(), }, contract: ContractBuilder().Xtokens().transferWithEvmTo32(), }, @@ -1335,6 +1343,7 @@ export const moonbeamRoutes = new ChainRoutes({ amount: 0.00001, asset: usdtwh, }, + min: AssetMinBuilder().assets().asset(), }, contract: ContractBuilder().Xtokens().transferWithEvmTo32(), }, @@ -1358,6 +1367,7 @@ export const moonbeamRoutes = new ChainRoutes({ amount: 0.00001, asset: dai, }, + min: AssetMinBuilder().assets().asset(), }, contract: ContractBuilder().Xtokens().transferWithEvmTo32(), }, @@ -1381,6 +1391,7 @@ export const moonbeamRoutes = new ChainRoutes({ amount: 0.000001, asset: weth, }, + min: AssetMinBuilder().assets().asset(), }, contract: ContractBuilder().Xtokens().transferWithEvmTo32(), }, @@ -1404,6 +1415,7 @@ export const moonbeamRoutes = new ChainRoutes({ amount: 0.000001, asset: wbtc, }, + min: AssetMinBuilder().assets().asset(), }, contract: ContractBuilder().Xtokens().transferWithEvmTo32(), }, @@ -1424,9 +1436,11 @@ export const moonbeamRoutes = new ChainRoutes({ chain: polkadotAssetHub, balance: BalanceBuilder().substrate().assets().account(), fee: { - amount: 0.2, + amount: 0.05, asset: usdt, + balance: BalanceBuilder().substrate().assets().account(), // TODO change when DOT pays for fees }, + min: AssetMinBuilder().assets().asset(), }, contract: ContractBuilder().Xtokens().transferMultiCurrencies(), }, diff --git a/packages/config/src/xcm-configs/moonriver.ts b/packages/config/src/xcm-configs/moonriver.ts index 7e21134f..04218017 100644 --- a/packages/config/src/xcm-configs/moonriver.ts +++ b/packages/config/src/xcm-configs/moonriver.ts @@ -1,4 +1,8 @@ -import { BalanceBuilder, ContractBuilder } from '@moonbeam-network/xcm-builder'; +import { + AssetMinBuilder, + BalanceBuilder, + ContractBuilder, +} from '@moonbeam-network/xcm-builder'; import { aseed, bnc, @@ -64,6 +68,7 @@ export const moonriverRoutes = new ChainRoutes({ amount: 0.0008544, asset: movr, }, + min: AssetMinBuilder().assetRegistry().currencyMetadatas(), }, contract: ContractBuilder().Xtokens().transfer(), }, @@ -83,6 +88,7 @@ export const moonriverRoutes = new ChainRoutes({ amount: 0.001, asset: movr, }, + min: AssetMinBuilder().assets().asset(), }, contract: ContractBuilder().Xtokens().transfer(), }, @@ -121,6 +127,7 @@ export const moonriverRoutes = new ChainRoutes({ amount: 0.001, asset: movr, }, + min: AssetMinBuilder().assetRegistry().assetMetadatas(), }, contract: ContractBuilder().Xtokens().transfer(), }, @@ -219,29 +226,6 @@ export const moonriverRoutes = new ChainRoutes({ }, contract: ContractBuilder().Xtokens().transfer(), }, - { - source: { - asset: movr, - balance: BalanceBuilder().substrate().assets().account(), - fee: { - asset: movr, - balance: BalanceBuilder().substrate().system().account(), - }, - destinationFee: { - balance: BalanceBuilder().substrate().assets().account(), - }, - }, - destination: { - asset: movr, - chain: karura, - balance: BalanceBuilder().substrate().tokens().accounts(), - fee: { - amount: 0.256, - asset: aseed, - }, - }, - contract: ContractBuilder().Xtokens().transfer(), - }, { source: { asset: bnc, @@ -334,6 +318,30 @@ export const moonriverRoutes = new ChainRoutes({ }, contract: ContractBuilder().Xtokens().transfer(), }, + { + source: { + asset: aseed, + balance: BalanceBuilder().substrate().assets().account(), + fee: { + asset: movr, + balance: BalanceBuilder().substrate().system().account(), + }, + destinationFee: { + balance: BalanceBuilder().substrate().assets().account(), + }, + }, + destination: { + asset: aseed, + chain: karura, + balance: BalanceBuilder().substrate().tokens().accounts(), + fee: { + amount: 0.256, + asset: aseed, + }, + min: AssetMinBuilder().assetRegistry().assetMetadatas(), + }, + contract: ContractBuilder().Xtokens().transfer(), + }, { source: { asset: kbtc, @@ -515,6 +523,7 @@ export const moonriverRoutes = new ChainRoutes({ amount: 0.0000504, asset: rmrk, }, + min: AssetMinBuilder().assets().asset(), }, contract: ContractBuilder().Xtokens().transfer(), }, @@ -630,6 +639,7 @@ export const moonriverRoutes = new ChainRoutes({ amount: 0.00504, asset: usdt, }, + min: AssetMinBuilder().assets().asset(), }, contract: ContractBuilder().Xtokens().transfer(), }, @@ -676,6 +686,7 @@ export const moonriverRoutes = new ChainRoutes({ amount: 0.0001, asset: vbnc, }, + min: AssetMinBuilder().assetRegistry().currencyMetadatas(), }, contract: ContractBuilder().Xtokens().transfer(), }, @@ -699,6 +710,7 @@ export const moonriverRoutes = new ChainRoutes({ amount: 0.0001, asset: vksm, }, + min: AssetMinBuilder().assetRegistry().currencyMetadatas(), }, contract: ContractBuilder().Xtokens().transfer(), }, @@ -722,6 +734,7 @@ export const moonriverRoutes = new ChainRoutes({ amount: 0.00000001, asset: vmovr, }, + min: AssetMinBuilder().assetRegistry().currencyMetadatas(), }, contract: ContractBuilder().Xtokens().transfer(), }, diff --git a/packages/config/src/xcm-configs/nodle.ts b/packages/config/src/xcm-configs/nodle.ts deleted file mode 100644 index 08b2383d..00000000 --- a/packages/config/src/xcm-configs/nodle.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { - BalanceBuilder, - ExtrinsicBuilder, - FeeBuilder, -} from '@moonbeam-network/xcm-builder'; -import { nodl } from '../assets'; -import { moonbeam, nodle } from '../chains'; -import { ChainRoutes } from '../types/ChainRoutes'; - -export const nodleRoutes = new ChainRoutes({ - chain: nodle, - routes: [ - { - source: { - asset: nodl, - balance: BalanceBuilder().substrate().system().account(), - destinationFee: { - balance: BalanceBuilder().substrate().system().account(), - }, - }, - destination: { - asset: nodl, - chain: moonbeam, - balance: BalanceBuilder().substrate().assets().account(), - fee: { - amount: FeeBuilder() - .xcmPaymentApi() - .xcmPaymentFee({ isAssetReserveChain: false }), - asset: nodl, - }, - }, - extrinsic: ExtrinsicBuilder().xTokens().transfer(), - }, - ], -}); 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, diff --git a/packages/sdk/tests/acceptance/__snapshots__/sdk.test.ts.snap b/packages/sdk/tests/acceptance/__snapshots__/sdk.test.ts.snap index e663e418..30e334ce 100644 --- a/packages/sdk/tests/acceptance/__snapshots__/sdk.test.ts.snap +++ b/packages/sdk/tests/acceptance/__snapshots__/sdk.test.ts.snap @@ -553,7 +553,7 @@ exports[`sdk > getParachainBalances > on 'Moonbeam' for address: '0x4E82143Af671 _AssetAmount { "address": "0xffffffff2e1d1ac9ea1686255befe995b31abc96", "amount": 0n, - "decimals": 18, + "decimals": 10, "ids": { "id": "61295607754960722617854661686514597014", }, @@ -874,18 +874,6 @@ exports[`sdk > getParachainBalances > on 'Moonbeam' for address: '0x4E82143Af671 "originSymbol": "NEURO", "symbol": undefined, }, - _AssetAmount { - "address": "0xfffffffFe896ba7Cb118b9Fa571c6dC0a99dEfF1", - "amount": 0n, - "decimals": 11, - "ids": { - "id": "309163521958167876851250718453738106865", - }, - "key": "nodl", - "min": undefined, - "originSymbol": "NODL", - "symbol": undefined, - }, _AssetAmount { "address": "0xfFFffFFf7D3875460d4509eb8d0362c611B4E841", "amount": 0n,