Skip to content

Commit

Permalink
feat: add KSM cross-chain transfer from karura -> moonriver (#113)
Browse files Browse the repository at this point in the history
* feat: update version

* feat: add KSM cross-chain transfer from karura -> moonriver

* fix: fix build error
  • Loading branch information
qwer951123 authored Feb 22, 2024
1 parent a7211fe commit a76f00f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
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.5-31"
"stableVersion": "0.1.5-32"
}
7 changes: 7 additions & 0 deletions src/adapters/acala/karura-configs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,13 @@ export const karuraRouteConfigs = createRouteConfigs("karura", [
fee: { token: "MOVR", amount: "80000000000000" },
},
},
{
to: "moonriver",
token: "KSM",
xcm: {
fee: { token: "KSM", amount: "353666600" },
},
},
{
to: "moonriver",
token: "KAR",
Expand Down
3 changes: 2 additions & 1 deletion src/adapters/moonbeam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
createRouteConfigs,
getDestAccountInfo,
validateAddress,
} from "src/utils";
} from "../utils";
import {
BalanceData,
BasicToken,
Expand Down Expand Up @@ -118,6 +118,7 @@ const moonbeamTokensConfig: Record<string, ExtendedToken> = {
export const moonriverTokensConfig: Record<string, BasicToken> = {
MOVR: { name: "MOVR", symbol: "MOVR", decimals: 18, ed: "1000000000000000" },
KAR: { name: "KAR", symbol: "KAR", decimals: 12, ed: "0" },
KSM: { name: "KSM", symbol: "KSM", decimals: 12, ed: "10000000000" },
KUSD: { name: "KUSD", symbol: "KUSD", decimals: 12, ed: "0" },
};

Expand Down

0 comments on commit a76f00f

Please sign in to comment.