Skip to content

Commit

Permalink
add Polkadot and Polkadot Asset hub delivery fees
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaurello committed Feb 26, 2024
1 parent 387ce33 commit db818b4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/config/src/configs/kusamaAssetHub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -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(),
}),
Expand All @@ -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(),
}),
Expand Down
5 changes: 5 additions & 0 deletions packages/config/src/configs/polkadot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 4 additions & 0 deletions packages/config/src/configs/polkadotAssetHub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -27,6 +29,7 @@ export const polkadotAssetHubConfig = new ChainConfig({
fee: {
asset: dot,
balance: BalanceBuilder().substrate().system().account(),
xcmDeliveryFeeAmount,
},
min: AssetMinBuilder().assets().asset(),
}),
Expand All @@ -46,6 +49,7 @@ export const polkadotAssetHubConfig = new ChainConfig({
fee: {
asset: dot,
balance: BalanceBuilder().substrate().system().account(),
xcmDeliveryFeeAmount,
},
min: AssetMinBuilder().assets().asset(),
}),
Expand Down

0 comments on commit db818b4

Please sign in to comment.