Skip to content

Commit

Permalink
Merge pull request #23 from galacticcouncil/ztg-usdc-adjustments
Browse files Browse the repository at this point in the history
Add GLMR to zeitgeist and set usdc to 10 decimals
  • Loading branch information
nohaapav authored Feb 8, 2024
2 parents 545f9b6 + 1ee7dcd commit ac2f563
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/xcm-cfg/src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ export const zeitgeist = new Parachain({
{
asset: usdc_mwh,
id: { ForeignAsset: 1 },
decimals: 6,
decimals: 10,
},
{
asset: glmr,
Expand Down
15 changes: 15 additions & 0 deletions packages/xcm-cfg/src/configs/hydraDX.ts
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,21 @@ const toZeitgeist: AssetConfig[] = [
balance: BalanceBuilder().substrate().system().account(),
},
}),
new AssetConfig({
asset: glmr,
balance: BalanceBuilder().substrate().tokens().accounts(),
destination: zeitgeist,
destinationFee: {
amount: 0.1,
asset: glmr,
balance: BalanceBuilder().substrate().tokens().accounts(),
},
extrinsic: ExtrinsicBuilder().xTokens().transferMultiCurrencies(),
fee: {
asset: glmr,
balance: BalanceBuilder().substrate().tokens().accounts(),
},
}),
];

const toPhala: AssetConfig[] = [
Expand Down
19 changes: 17 additions & 2 deletions packages/xcm-cfg/src/configs/zeitgeist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,23 @@ const toHydraDX: AssetConfig[] = [
},
extrinsic: ExtrinsicBuilder().xTokens().transferMultiCurrencies(),
fee: {
asset: ztg,
balance: BalanceBuilder().substrate().system().account(),
asset: glmr,
balance: BalanceBuilder().substrate().tokens().accounts(),
},
}),
new AssetConfig({
asset: glmr,
balance: BalanceBuilder().substrate().tokens().accounts(),
destination: hydraDX,
destinationFee: {
amount: 0.1,
asset: glmr,
balance: BalanceBuilder().substrate().tokens().accounts(),
},
extrinsic: ExtrinsicBuilder().xTokens().transferMultiCurrencies(),
fee: {
asset: glmr,
balance: BalanceBuilder().substrate().tokens().accounts(),
},
}),
];
Expand Down

0 comments on commit ac2f563

Please sign in to comment.