Skip to content

Commit

Permalink
Sym (#9413)
Browse files Browse the repository at this point in the history
* symbiosis adds zklink support

* Add ZKLink RPC endpoint and token mapping for zklink.WETH

---------

Co-authored-by: allush <[email protected]>
  • Loading branch information
g1nt0ki and allush authored Mar 18, 2024
1 parent 995c4db commit 0e1dd92
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 1 deletion.
3 changes: 2 additions & 1 deletion projects/helper/chains.json
Original file line number Diff line number Diff line change
Expand Up @@ -287,5 +287,6 @@
"zksync",
"zyx",
"zeta",
"fraxtal"
"fraxtal",
"zklink"
]
3 changes: 3 additions & 0 deletions projects/helper/coreAssets.json
Original file line number Diff line number Diff line change
Expand Up @@ -1658,5 +1658,8 @@
"WBTC": "0xde397e6C442A3E697367DecBF0d50733dc916b79",
"WDAI": "0xDeb87c37Dcf7F5197026f574cd40B3Fc8Aa126D1",
"WUSDC": "0x79Cb92a2806BF4f82B614A84b6805963b8b1D8BB"
},
"zklink": {
"WETH": "0x8280a4e7D5B3B658ec4580d3Bc30f5e50454F169"
}
}
1 change: 1 addition & 0 deletions projects/helper/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const DEFAULTS = {
OZONE_RPC: "https://node1.ozonechain.io",
ZETA_RPC: "https://zetachain-evm.blockpi.network/v1/rpc/public,https://zetachain-mainnet-archive.allthatnode.com:8545",
DEFIVERSE_RPC: "https://rpc.defi-verse.org/",
ZKLINK_RPC: "https://rpc.zklink.io",
}

const ENV_KEYS = [
Expand Down
3 changes: 3 additions & 0 deletions projects/helper/tokenMapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ const ibcMappings = {
}

const fixBalancesTokens = {
zklink: {
[ADDRESSES.zklink.WETH]: { coingeckoId: "ethereum", decimals: 18 },
},
// Sample Code
ozone: {
// '0x83048f0bf34feed8ced419455a4320a735a92e9d': { coingeckoId: "ozonechain", decimals: 18 }, // was mapped to wrong chain
Expand Down
9 changes: 9 additions & 0 deletions projects/symbiosis-finance/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,5 +298,14 @@ module.exports = {
'0x318C2B9a03C37702742C3d40C72e4056e430135A', // portal v2
]
},
{
name: 'zklink',
tokens: [
ADDRESSES.zklink.WETH,
],
holders: [
'0x8Dc71561414CDcA6DcA7C1dED1ABd04AF474D189', // portal v2
]
},
]
}

0 comments on commit 0e1dd92

Please sign in to comment.