From 4450dd803d362b9a09c212e5e206c383480846ef Mon Sep 17 00:00:00 2001 From: ChiTimesChi <88190723+ChiTimesChi@users.noreply.github.com> Date: Wed, 4 Sep 2024 12:18:13 +0100 Subject: [PATCH] build: update SynapseRouter configs on DFK, Klaytn, Metis --- script/configs/dfk/SynapseRouter.dc.json | 12 +++++++++++- script/configs/klatyn/SynapseRouter.dc.json | 12 +++++++++++- script/configs/metis/SynapseRouter.dc.json | 14 ++++++++++++-- script/router/SaveRouterConfig.s.sol | 4 +--- 4 files changed, 35 insertions(+), 7 deletions(-) diff --git a/script/configs/dfk/SynapseRouter.dc.json b/script/configs/dfk/SynapseRouter.dc.json index 7e252ea0d..6c9da4caf 100644 --- a/script/configs/dfk/SynapseRouter.dc.json +++ b/script/configs/dfk/SynapseRouter.dc.json @@ -10,7 +10,8 @@ "KLAY", "MATIC", "FTM", - "BTCB" + "BTCB", + "Metis" ], "tokens": { "AVAX": { @@ -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", diff --git a/script/configs/klatyn/SynapseRouter.dc.json b/script/configs/klatyn/SynapseRouter.dc.json index c30e413d7..40c0ade7a 100644 --- a/script/configs/klatyn/SynapseRouter.dc.json +++ b/script/configs/klatyn/SynapseRouter.dc.json @@ -10,7 +10,8 @@ "DAI", "KLAY", "BTCB", - "LINK" + "LINK", + "Metis" ], "tokens": { "AVAX": { @@ -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", diff --git a/script/configs/metis/SynapseRouter.dc.json b/script/configs/metis/SynapseRouter.dc.json index 20cf1dff7..52d08f3b6 100644 --- a/script/configs/metis/SynapseRouter.dc.json +++ b/script/configs/metis/SynapseRouter.dc.json @@ -7,7 +7,8 @@ "JUMP", "gOHM", "UST", - "JEWEL" + "JEWEL", + "Metis" ], "tokens": { "JEWEL": { @@ -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", @@ -74,5 +84,5 @@ "tokenType": 0 } }, - "wgas": "0x0000000000000000000000000000000000000000" + "wgas": "0x75cb093E4D61d2A2e65D8e0BBb01DE8d89b53481" } \ No newline at end of file diff --git a/script/router/SaveRouterConfig.s.sol b/script/router/SaveRouterConfig.s.sol index b7d2ea747..5aca63643 100644 --- a/script/router/SaveRouterConfig.s.sol +++ b/script/router/SaveRouterConfig.s.sol @@ -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 = "";