Skip to content

Commit

Permalink
feat: update polkadot & asset_hub delivery fee config (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
qwer951123 committed Jul 5, 2024
1 parent e00e68e commit 33cb830
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@
"jest": "^28.1.1",
"typescript": "^4.7.4"
},
"stableVersion": "0.1.7-7"
"stableVersion": "0.1.7-8"
}
10 changes: 10 additions & 0 deletions src/adapters/assethub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const assetHubPolkadotRouteConfigs = createRouteConfigs(
to: "polkadot",
token: "DOT",
xcm: {
deliveryFee: { token: "KSM", amount: "309700000" },
fee: { token: "DOT", amount: "421500000" },
weightLimit: "Unlimited",
},
Expand All @@ -33,6 +34,7 @@ export const assetHubPolkadotRouteConfigs = createRouteConfigs(
to: "hydradx",
token: "USDT",
xcm: {
deliveryFee: { token: "KSM", amount: "311100000" },
fee: { token: "USDT", amount: "2200" },
weightLimit: "Unlimited",
},
Expand All @@ -41,6 +43,7 @@ export const assetHubPolkadotRouteConfigs = createRouteConfigs(
to: "acala",
token: "USDT",
xcm: {
deliveryFee: { token: "KSM", amount: "311100000" },
fee: { token: "USDT", amount: "808" },
weightLimit: "Unlimited",
},
Expand All @@ -49,6 +52,7 @@ export const assetHubPolkadotRouteConfigs = createRouteConfigs(
to: "acala",
token: "USDC",
xcm: {
deliveryFee: { token: "KSM", amount: "311100000" },
fee: { token: "USDC", amount: "803" },
weightLimit: "Unlimited",
},
Expand All @@ -57,6 +61,7 @@ export const assetHubPolkadotRouteConfigs = createRouteConfigs(
to: "acala",
token: "PINK",
xcm: {
deliveryFee: { token: "KSM", amount: "311100000" },
fee: { token: "PINK", amount: "80370000" },
weightLimit: "Unlimited",
},
Expand All @@ -65,6 +70,7 @@ export const assetHubPolkadotRouteConfigs = createRouteConfigs(
to: "astar",
token: "USDT",
xcm: {
deliveryFee: { token: "KSM", amount: "311100000" },
fee: { token: "USDT", amount: "808" },
weightLimit: "Unlimited",
},
Expand All @@ -73,6 +79,7 @@ export const assetHubPolkadotRouteConfigs = createRouteConfigs(
to: "interlay",
token: "USDT",
xcm: {
deliveryFee: { token: "KSM", amount: "311100000" },
fee: { token: "USDT", amount: "25000" },
weightLimit: "Unlimited",
},
Expand All @@ -81,6 +88,7 @@ export const assetHubPolkadotRouteConfigs = createRouteConfigs(
to: "interlay",
token: "USDC",
xcm: {
deliveryFee: { token: "KSM", amount: "311100000" },
fee: { token: "USDC", amount: "25000" },
weightLimit: "Unlimited",
},
Expand All @@ -89,6 +97,7 @@ export const assetHubPolkadotRouteConfigs = createRouteConfigs(
to: "moonbeam",
token: "USDT",
xcm: {
deliveryFee: { token: "KSM", amount: "311100000" },
fee: { token: "USDT", amount: "808" },
weightLimit: "Unlimited",
},
Expand All @@ -97,6 +106,7 @@ export const assetHubPolkadotRouteConfigs = createRouteConfigs(
to: "parallel",
token: "USDT",
xcm: {
deliveryFee: { token: "KSM", amount: "311100000" },
fee: { token: "USDT", amount: "808" },
weightLimit: "Unlimited",
},
Expand Down
5 changes: 4 additions & 1 deletion src/adapters/polkadot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@ export const polkadotRouteConfigs = createRouteConfigs("polkadot", [
token: "DOT",
xcm: {
fee: { token: "DOT", amount: "1222070" },
deliveryFee: { token: "DOT", amount: "399000000" },
deliveryFee: { token: "DOT", amount: "397000000" },
weightLimit: "Unlimited",
},
},
{
to: "hydradx",
token: "DOT",
xcm: {
deliveryFee: { token: "DOT", amount: "397000000" },
fee: { token: "DOT", amount: "21711791" },
weightLimit: "Unlimited",
},
Expand All @@ -39,6 +40,7 @@ export const polkadotRouteConfigs = createRouteConfigs("polkadot", [
to: "assetHubPolkadot",
token: "DOT",
xcm: {
deliveryFee: { token: "DOT", amount: "397000000" },
fee: { token: "DOT", amount: "15800000" },
weightLimit: "Unlimited",
},
Expand All @@ -47,6 +49,7 @@ export const polkadotRouteConfigs = createRouteConfigs("polkadot", [
to: "interlay",
token: "DOT",
xcm: {
deliveryFee: { token: "DOT", amount: "397000000" },
fee: { token: "DOT", amount: "25000000" },
weightLimit: "Unlimited",
},
Expand Down

0 comments on commit 33cb830

Please sign in to comment.