From c31e84d5bb09f5d9c383707b05113c9b7ff75021 Mon Sep 17 00:00:00 2001 From: qwer951123 Date: Thu, 4 Jul 2024 18:23:59 +0800 Subject: [PATCH] feat: update kusama & asset_hub xcm fee config (#135) * feat: update kusama & asset_hub xcm fee config * feat: update release version --- package.json | 2 +- src/adapters/assethub.ts | 10 +++++++++- src/adapters/polkadot.ts | 5 ++++- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index deefe3a..034d3c1 100644 --- a/package.json +++ b/package.json @@ -55,5 +55,5 @@ "jest": "^28.1.1", "typescript": "^4.7.4" }, - "stableVersion": "0.1.7-5" + "stableVersion": "0.1.7-6" } diff --git a/src/adapters/assethub.ts b/src/adapters/assethub.ts index eb8f8c2..579e0b5 100644 --- a/src/adapters/assethub.ts +++ b/src/adapters/assethub.ts @@ -110,6 +110,7 @@ export const assetHubKusamaRouteConfigs = createRouteConfigs("assetHubKusama", [ token: "KSM", xcm: { fee: { token: "KSM", amount: "90049287" }, + deliveryFee: { token: "KSM", amount: "1032333300" }, weightLimit: "Unlimited", }, }, @@ -117,6 +118,7 @@ export const assetHubKusamaRouteConfigs = createRouteConfigs("assetHubKusama", [ to: "karura", token: "RMRK", xcm: { + deliveryFee: { token: "KSM", amount: "1036333296" }, fee: { token: "RMRK", amount: "9918117" }, weightLimit: "Unlimited", }, @@ -126,19 +128,25 @@ export const assetHubKusamaRouteConfigs = createRouteConfigs("assetHubKusama", [ token: "ARIS", xcm: { fee: { token: "ARIS", amount: "6400000" }, + deliveryFee: { token: "KSM", amount: "1036333296" }, weightLimit: "Unlimited", }, }, { to: "karura", token: "USDT", - xcm: { fee: { token: "USDT", amount: "808" }, weightLimit: "Unlimited" }, + xcm: { + fee: { token: "USDT", amount: "808" }, + deliveryFee: { token: "KSM", amount: "1036333296" }, + weightLimit: "Unlimited", + }, }, { to: "kintsugi", token: "USDT", xcm: { fee: { token: "USDT", amount: "20000" }, + deliveryFee: { token: "KSM", amount: "1036333296" }, weightLimit: "Unlimited", }, }, diff --git a/src/adapters/polkadot.ts b/src/adapters/polkadot.ts index ccf51ed..0de9fb0 100644 --- a/src/adapters/polkadot.ts +++ b/src/adapters/polkadot.ts @@ -59,7 +59,7 @@ export const kusamaRouteConfigs = createRouteConfigs("kusama", [ token: "KSM", xcm: { fee: { token: "KSM", amount: "44163610" }, - deliveryFee: { token: "KSM", amount: "1336666329" }, + deliveryFee: { token: "KSM", amount: "1323333009" }, weightLimit: "Unlimited", }, }, @@ -68,6 +68,7 @@ export const kusamaRouteConfigs = createRouteConfigs("kusama", [ token: "KSM", xcm: { fee: { token: "KSM", amount: "72711796" }, + deliveryFee: { token: "KSM", amount: "1323333009" }, weightLimit: "Unlimited", }, }, @@ -76,6 +77,7 @@ export const kusamaRouteConfigs = createRouteConfigs("kusama", [ token: "KSM", xcm: { fee: { token: "KSM", amount: "34368318" }, + deliveryFee: { token: "KSM", amount: "1323333009" }, weightLimit: "Unlimited", }, }, @@ -84,6 +86,7 @@ export const kusamaRouteConfigs = createRouteConfigs("kusama", [ token: "KSM", xcm: { fee: { token: "KSM", amount: "250000000" }, + deliveryFee: { token: "KSM", amount: "1323333009" }, weightLimit: "Unlimited", }, },