Skip to content

Commit

Permalink
add aca for hydra (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
qiweiii authored Jul 9, 2024
1 parent 0653f95 commit 965325f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
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-9"
"stableVersion": "0.1.7-10"
}
7 changes: 7 additions & 0 deletions src/adapters/acala/acala-configs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,13 @@ export const acalaRouteConfigs = createRouteConfigs("acala", [
fee: { token: "LDOT", amount: "11516111" },
},
},
{
to: "hydradx",
token: "ACA",
xcm: {
fee: { token: "ACA", amount: "10429291793" },
},
},
{
to: "unique",
token: "UNQ",
Expand Down
14 changes: 14 additions & 0 deletions src/adapters/hydradx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,13 @@ export const hydradxRoutersConfig = createRouteConfigs("hydradx", [
fee: { token: "LDOT", amount: "7143397" },
},
},
{
to: "acala",
token: "ACA",
xcm: {
fee: { token: "ACA", amount: "6429600000" },
},
},
{
to: "interlay",
token: "HDX",
Expand Down Expand Up @@ -277,6 +284,13 @@ export const hydradxRoutersConfig = createRouteConfigs("hydradx", [
]);

export const hydradxTokensConfig: Record<string, ExtendedToken> = {
ACA: {
name: "ACA",
symbol: "ACA",
decimals: 12,
ed: "90744101633",
toRaw: () => 1000099,
},
HDX: {
name: "HDX",
symbol: "HDX",
Expand Down

0 comments on commit 965325f

Please sign in to comment.