From db818b4f1b42298d3b4d3f191da1f9b0e1004e61 Mon Sep 17 00:00:00 2001 From: Mario J Maurello Date: Tue, 27 Feb 2024 01:38:35 +1300 Subject: [PATCH] add Polkadot and Polkadot Asset hub delivery fees --- packages/config/src/configs/kusamaAssetHub.ts | 6 ++++-- packages/config/src/configs/polkadot.ts | 5 +++++ packages/config/src/configs/polkadotAssetHub.ts | 4 ++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/packages/config/src/configs/kusamaAssetHub.ts b/packages/config/src/configs/kusamaAssetHub.ts index 4f3bc858..51893e5b 100644 --- a/packages/config/src/configs/kusamaAssetHub.ts +++ b/packages/config/src/configs/kusamaAssetHub.ts @@ -9,6 +9,8 @@ import { kusamaAssetHub, moonriver } from '../chains'; import { AssetConfig } from '../types/AssetConfig'; import { ChainConfig } from '../types/ChainConfig'; +const xcmDeliveryFeeAmount = 0.0015; + export const kusamaAssetHubConfig = new ChainConfig({ assets: [ new AssetConfig({ @@ -27,7 +29,7 @@ export const kusamaAssetHubConfig = new ChainConfig({ fee: { asset: ksm, balance: BalanceBuilder().substrate().system().account(), - xcmDeliveryFeeAmount: 0.0015, + xcmDeliveryFeeAmount, }, min: AssetMinBuilder().assets().asset(), }), @@ -47,7 +49,7 @@ export const kusamaAssetHubConfig = new ChainConfig({ fee: { asset: ksm, balance: BalanceBuilder().substrate().system().account(), - xcmDeliveryFeeAmount: 0.0015, + xcmDeliveryFeeAmount, }, min: AssetMinBuilder().assets().asset(), }), diff --git a/packages/config/src/configs/polkadot.ts b/packages/config/src/configs/polkadot.ts index 17774553..148801e8 100644 --- a/packages/config/src/configs/polkadot.ts +++ b/packages/config/src/configs/polkadot.ts @@ -23,6 +23,11 @@ export const polkadotConfig = new ChainConfig({ .xcmPallet() .limitedReserveTransferAssets(0) .here(), + fee: { + asset: dot, + balance: BalanceBuilder().substrate().system().account(), + xcmDeliveryFeeAmount: 0.047, + }, }), ], chain: polkadot, diff --git a/packages/config/src/configs/polkadotAssetHub.ts b/packages/config/src/configs/polkadotAssetHub.ts index 7e90b192..c8b6a79a 100644 --- a/packages/config/src/configs/polkadotAssetHub.ts +++ b/packages/config/src/configs/polkadotAssetHub.ts @@ -9,6 +9,8 @@ import { moonbeam, polkadotAssetHub } from '../chains'; import { AssetConfig } from '../types/AssetConfig'; import { ChainConfig } from '../types/ChainConfig'; +const xcmDeliveryFeeAmount = 0.036; + export const polkadotAssetHubConfig = new ChainConfig({ assets: [ new AssetConfig({ @@ -27,6 +29,7 @@ export const polkadotAssetHubConfig = new ChainConfig({ fee: { asset: dot, balance: BalanceBuilder().substrate().system().account(), + xcmDeliveryFeeAmount, }, min: AssetMinBuilder().assets().asset(), }), @@ -46,6 +49,7 @@ export const polkadotAssetHubConfig = new ChainConfig({ fee: { asset: dot, balance: BalanceBuilder().substrate().system().account(), + xcmDeliveryFeeAmount, }, min: AssetMinBuilder().assets().asset(), }),