Skip to content

Commit

Permalink
Add vdot
Browse files Browse the repository at this point in the history
  • Loading branch information
green-jay committed Dec 12, 2024
1 parent 5a88e81 commit a8f6aae
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/cool-bulldogs-fail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@galacticcouncil/xcm-cfg': minor
---

vdot
22 changes: 22 additions & 0 deletions packages/xcm-cfg/src/chains/polkadot/moonbeam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
usdc_mwh,
usdt,
usdt_mwh,
vdot,
wbtc_mwh,
weth_mwh,
} from '../../assets';
Expand Down Expand Up @@ -286,6 +287,27 @@ export const moonbeam = new EvmParachain({
},
},
},
{
asset: vdot,
decimals: 10,
id: '29085784439601774464560083082574142143',
xcmLocation: {
parents: 1,
interior: {
X2: [
{
Parachain: 2030,
},
{
GeneralKey: {
length: 2,
data: '0x0900000000000000000000000000000000000000000000000000000000000000',
},
},
],
},
},
},
],
ecosystem: Ecosystem.Polkadot,
evmChain: evmChain,
Expand Down
19 changes: 19 additions & 0 deletions packages/xcm-cfg/src/configs/polkadot/hydration/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,25 @@ const toMoonbeam: AssetRoute[] = [
},
extrinsic: ExtrinsicBuilder().xTokens().transfer(),
}),
new AssetRoute({
source: {
asset: vdot,
balance: balance(),
fee: fee(),
destinationFee: {
balance: balance(),
},
},
destination: {
chain: moonbeam,
asset: vdot,
fee: {
amount: 0.05,
asset: vdot,
},
},
extrinsic: ExtrinsicBuilder().xTokens().transfer(),
}),
toMoonbeamErc20Template(dai_mwh),
toMoonbeamErc20Template(usdc_mwh),
toMoonbeamErc20Template(usdt_mwh),
Expand Down
2 changes: 2 additions & 0 deletions packages/xcm-cfg/src/configs/polkadot/moonbeam/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
usdc_mwh,
usdt,
usdt_mwh,
vdot,
wbtc_mwh,
weth_mwh,
} from '../../../assets';
Expand Down Expand Up @@ -46,6 +47,7 @@ const toHydration: AssetRoute[] = [
}),
toHydrationXcTemplate(hdx, 0.6),
toHydrationXcTemplate(dot, 0.1),
toHydrationXcTemplate(vdot, 0.05),
toHydrationErc20Template(dai_mwh, 0.004),
toHydrationErc20Template(usdc_mwh, 0.004),
toHydrationErc20Template(usdt_mwh, 0.004),
Expand Down

0 comments on commit a8f6aae

Please sign in to comment.