Skip to content

Commit

Permalink
update karura fee to include ksm (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
shunjizhan authored Jan 29, 2024
1 parent d028708 commit 914353d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@acala-network/asset-router",
"version": "1.0.14",
"version": "1.0.15",
"main": "dist/index.js",
"repository": "[email protected]:AcalaNetwork/asset-router.git",
"author": "Acala Developers <[email protected]>",
Expand Down
11 changes: 10 additions & 1 deletion scripts/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export const enum TOKEN {
LDOT = 'ldot',
TDOT = 'tdot',
LCDOT = 'lcdot',
KSM = 'ksm',
}

export type CHAIN_NAME = keyof typeof CHAIN;
Expand All @@ -59,7 +60,7 @@ export const ADDRESSES = {
[CHAIN.KARURA]: {
tokenBridgeAddr: CONTRACTS.MAINNET.karura.token_bridge,
factoryAddr: '0x38bCDdc086eC0f68390d7c6452361036469D1203',
feeAddr: '0xF25176942A23C703aB7b79f50fF7eaBb6eee8d82',
feeAddr: '0x2AeFc65B6E1660d2bA2796f8698120A2acB95634',
usdcAddr: '0x1F3a10587A20114EA25Ba1b388EE2dD4A337ce27',
homaFactoryAddr: '0x915b1505EC8dffE845Bf0AEAc982706631b1C4b6',
accountHelperAddr: '0x94Bb240Ff3BB9a61D8f31C39978Ce7D858b9C015',
Expand Down Expand Up @@ -252,6 +253,14 @@ export const ROUTER_TOKEN_INFO = {
decimals: 10,
fee: 0.01,
},
[TOKEN.KSM]: {
originChain: CHAIN.KARURA,
originAddr: '0x0000000000000000000100000000000000000082',
karuraAddr: '0x0000000000000000000100000000000000000082',
acalaAddr: null,
decimals: 12,
fee: 0.001,
},
} as const;

export const CHAIN_NAME_TO_WORMHOLE_CHAIN_ID = {
Expand Down
5 changes: 3 additions & 2 deletions scripts/deploy-fee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ main().catch((error) => {


/* ---------------
karura: 0xF25176942A23C703aB7b79f50fF7eaBb6eee8d82
karura: 0x2AeFc65B6E1660d2bA2796f8698120A2acB95634
{
'0x21a3e77E77f1A73f303B0e050bDFa33c439E57D3': 36000000000000000n,
'0xC5033741CA1ce8F4f956eCA6c2fF7360cABFA08d': 50000000000000000n,
Expand All @@ -54,7 +54,8 @@ karura: 0xF25176942A23C703aB7b79f50fF7eaBb6eee8d82
'0x30b1f4BA0b07789bE9986fA090A57e0FE5631eBB': 13000000000000000n,
'0x1F3a10587A20114EA25Ba1b388EE2dD4A337ce27': 40000n,
'0x54e183E533FD3c6E72DEBB2D1cAB451d017FaF72': 40000n,
'0xFdb9E75eC0B329B23B2C8cb165F718A5688E66dC': 5400000000000000000n
'0xFdb9E75eC0B329B23B2C8cb165F718A5688E66dC': 5400000000000000000n,
'0x0000000000000000000100000000000000000082': 1000000000n
}
acala: 0x94Bb240Ff3BB9a61D8f31C39978Ce7D858b9C015
Expand Down

0 comments on commit 914353d

Please sign in to comment.