Skip to content

Commit

Permalink
configure fees
Browse files Browse the repository at this point in the history
  • Loading branch information
green-jay committed Jan 10, 2024
1 parent 7991304 commit c3fac9e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
6 changes: 4 additions & 2 deletions packages/xcm-cfg/src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ export const nodle = new Parachain({
// NOTE: no meta for native token
{
asset: nodl,
metadataId: 99999999,
id: 'NodleNative',
},
],
ecosystem: Ecosystem.Polkadot,
Expand All @@ -445,7 +445,7 @@ export const unique = new Parachain({
// NOTE: no meta for native token
{
asset: unq,
metadataId: 99999999,
id: 0,
},
],
ecosystem: Ecosystem.Polkadot,
Expand All @@ -471,6 +471,8 @@ export const chains: AnyChain[] = [
subsocial,
zeitgeist,
phala,
unique,
nodle
];

export const chainsMap = new Map<string, AnyChain>(
Expand Down
4 changes: 2 additions & 2 deletions packages/xcm-cfg/src/configs/hydraDX.ts
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ const toNodle: AssetConfig[] = [
balance: BalanceBuilder().substrate().tokens().accounts(),
destination: nodle,
destinationFee: {
amount: 0.0018,
amount: 0.0012,
asset: nodl,
balance: BalanceBuilder().substrate().tokens().accounts(),
},
Expand All @@ -436,7 +436,7 @@ const toUnique: AssetConfig[] = [
balance: BalanceBuilder().substrate().tokens().accounts(),
destination: unique,
destinationFee: {
amount: 0.000078,
amount: 0,
asset: unq,
balance: BalanceBuilder().substrate().tokens().accounts(),
},
Expand Down
4 changes: 2 additions & 2 deletions packages/xcm-cfg/src/configs/nodle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ export const nodleConfig = new ChainConfig({
balance: BalanceBuilder().substrate().system().account(),
destination: hydraDX,
destinationFee: {
amount: 1.8,
amount: 0.2,
asset: nodl,
balance: BalanceBuilder().substrate().system().account(),
},
extrinsic: ExtrinsicBuilder().xTransfer().transfer().here(),
extrinsic: ExtrinsicBuilder().xTokens().transfer(),
}),
],
chain: nodle,
Expand Down
4 changes: 2 additions & 2 deletions packages/xcm-cfg/src/configs/unique.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ export const uniqueConfig = new ChainConfig({
balance: BalanceBuilder().substrate().system().account(),
destination: hydraDX,
destinationFee: {
amount: 1.8,
amount: 0.22,
asset: unq,
balance: BalanceBuilder().substrate().system().account(),
},
extrinsic: ExtrinsicBuilder().xTransfer().transfer().here(),
extrinsic: ExtrinsicBuilder().xTokens().transfer(),
}),
],
chain: unique,
Expand Down

0 comments on commit c3fac9e

Please sign in to comment.