Skip to content

Commit 5ef7415

Browse files
authored
Add Mode network for Dexilla (DefiLlama#8961)
* add Dexilla project * Update contract * update timestamp * add optimism chain * add V.4 contracts * add zk contracts * add arbitrum contracts * add base chain * add v.5 contracts * add AXL/USDC.e contract on arbitrum chain * add exchanges on mode mainnet
1 parent e73737a commit 5ef7415

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

projects/dexilla/index.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,18 @@ const config = {
3434
'0x51c0378f913Fe3b79580E54AE5FB8682b856b5B6',
3535
],
3636
},
37-
base:{
37+
base: {
3838
exchanges: [
3939
'0x3F7F51983fb95084a5cb73EB2F28757Bd8bb65E3',
4040
],
41+
},
42+
mode: {
43+
exchanges: [
44+
'0xA3320CfD2027119fAe3DB4142546B86C6669646D',
45+
'0x7165DE038b6b76F05F30696A40bEF228731D6DdC',
46+
'0x4a0f2074F11FDB7084722fdF078e15E8E3a7A25D',
47+
'0x72E0f90cdaEE4A919FA15F465e15210a5E5b9306',
48+
],
4149
}
4250
}
4351

@@ -50,9 +58,9 @@ Object.keys(config).forEach(chain => {
5058
const { exchanges } = config[chain]
5159
module.exports[chain] = {
5260
tvl: async (_, _b, _cb, { api, }) => {
53-
const baseTokens = await api.multiCall({ abi: 'address:baseToken', calls: exchanges})
54-
const quoteTokens = await api.multiCall({ abi: 'address:quoteToken', calls: exchanges})
55-
return sumTokens2({ api, tokensAndOwners: exchanges.map((v, i) => [[baseTokens[i], v], [quoteTokens[i], v ]]).flat()})
61+
const baseTokens = await api.multiCall({ abi: 'address:baseToken', calls: exchanges })
62+
const quoteTokens = await api.multiCall({ abi: 'address:quoteToken', calls: exchanges })
63+
return sumTokens2({ api, tokensAndOwners: exchanges.map((v, i) => [[baseTokens[i], v], [quoteTokens[i], v]]).flat() })
5664
}
5765
}
5866
})

projects/helper/coreAssets.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1525,7 +1525,10 @@
15251525
"MEER_2": "0x457dE4e275A6b3C0D3750519221dD1dF19d54f01"
15261526
},
15271527
"mode": {
1528-
"WETH": "0x4200000000000000000000000000000000000006"
1528+
"WETH": "0x4200000000000000000000000000000000000006",
1529+
"USDC": "0xd988097fb8612cc24eeC14542bC03424c656005f",
1530+
"USDT": "0xf0F161fDA2712DB8b566946122a5af183995e2eD",
1531+
"WBTC": "0xcdd475325d6f564d27247d1dddbb0dac6fa0a5cf"
15291532
},
15301533
"zilliqa": {
15311534
"WZIL": "0x94e18ae7dd5ee57b55f30c4b63e2760c09efb192",

0 commit comments

Comments
 (0)