Skip to content

Commit

Permalink
build: update SynapseRouter configs on DFK, Klaytn, Metis
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiTimesChi committed Sep 4, 2024
1 parent 2b9646a commit 4450dd8
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 7 deletions.
12 changes: 11 additions & 1 deletion script/configs/dfk/SynapseRouter.dc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"KLAY",
"MATIC",
"FTM",
"BTCB"
"BTCB",
"Metis"
],
"tokens": {
"AVAX": {
Expand Down Expand Up @@ -67,6 +68,15 @@
"token": "0xD17a41Cd199edF1093A9Be4404EaDe52Ec19698e",
"tokenType": 0
},
"Metis": {
"bridgeFee": 4000000,
"bridgeToken": "0x43E8E55792D6317328e5c6B0A0C89eF4b8102Fa2",
"decimals": 18,
"maxFee": "0x000000000000000000000000000000000000000000032dcba101cb7220c6938c",
"minFee": "0x000000000000000000000000000000000000000000000000002386f26fc10000",
"token": "0x43E8E55792D6317328e5c6B0A0C89eF4b8102Fa2",
"tokenType": 0
},
"UST": {
"bridgeFee": 6000000,
"bridgeToken": "0x360d6DD540E3448371876662FBE7F1aCaf08c5Ab",
Expand Down
12 changes: 11 additions & 1 deletion script/configs/klatyn/SynapseRouter.dc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"DAI",
"KLAY",
"BTCB",
"LINK"
"LINK",
"Metis"
],
"tokens": {
"AVAX": {
Expand Down Expand Up @@ -67,6 +68,15 @@
"token": "0xfbEd1AbB3aD0f8C467068De9fDE905887e8C9118",
"tokenType": 0
},
"Metis": {
"bridgeFee": 4000000,
"bridgeToken": "0x543f1b2176F7E677a95D01ca83551FAa08F83D9F",
"decimals": 18,
"maxFee": "0x000000000000000000000000000000000000000000032dcba101cb7220c6938c",
"minFee": "0x000000000000000000000000000000000000000000000000002386f26fc10000",
"token": "0x543f1b2176F7E677a95D01ca83551FAa08F83D9F",
"tokenType": 0
},
"USDC": {
"bridgeFee": 4000000,
"bridgeToken": "0x6270B58BE569a7c0b8f47594F191631Ae5b2C86C",
Expand Down
14 changes: 12 additions & 2 deletions script/configs/metis/SynapseRouter.dc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"JUMP",
"gOHM",
"UST",
"JEWEL"
"JEWEL",
"Metis"
],
"tokens": {
"JEWEL": {
Expand All @@ -28,6 +29,15 @@
"token": "0xE3c82A836Ec85311a433fBd9486EfAF4b1AFbF48",
"tokenType": 0
},
"Metis": {
"bridgeFee": 4000000,
"bridgeToken": "0x75cb093E4D61d2A2e65D8e0BBb01DE8d89b53481",
"decimals": 18,
"maxFee": "0x000000000000000000000000000000000000000000032dcba101cb7220c6938c",
"minFee": "0x000000000000000000000000000000000000000000000000002386f26fc10000",
"token": "0x75cb093E4D61d2A2e65D8e0BBb01DE8d89b53481",
"tokenType": 1
},
"SYN": {
"bridgeFee": 5000000,
"bridgeToken": "0x67C10C397dD0Ba417329543c1a40eb48AAa7cd00",
Expand Down Expand Up @@ -74,5 +84,5 @@
"tokenType": 0
}
},
"wgas": "0x0000000000000000000000000000000000000000"
"wgas": "0x75cb093E4D61d2A2e65D8e0BBb01DE8d89b53481"
}
4 changes: 1 addition & 3 deletions script/router/SaveRouterConfig.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ contract SaveRouterConfigScript is BridgeConfigV3Lens, SynapseScript {
return;
}
address bridge = loadDeployment("SynapseBridge");
// Apparently, METIS predeploy at 0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000
// could be used as ERC20 token representing METIS, rendering the concept of WGAS useless on that chain.
address wgas = _chainId() == METIS_CHAINID ? address(0) : loadDeployment("WGAS");
address wgas = loadDeployment("WGAS");

string memory fullConfig = "full";
string memory tokensConfig = "";
Expand Down

0 comments on commit 4450dd8

Please sign in to comment.