Skip to content

Commit a2584d9

Browse files
Add apechain/camelot and zircuit/ocelex (DefiLlama#11999)
Co-authored-by: g1nt0ki <[email protected]>
1 parent ac2721b commit a2584d9

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

projects/helper/tokenMapping.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@ const fixBalancesTokens = {
115115
'0x48b62137EdfA95a428D35C09E44256a739F6B557': { coingeckoId: 'wrapped-apecoin', decimals: 18 },
116116
'0xA2235d059F80e176D931Ef76b6C51953Eb3fBEf4': { coingeckoId: 'savings-dai', decimals: 18 },
117117
'0xcF800F4948D16F23333508191B1B1591daF70438': { coingeckoId: 'staked-ether', decimals: 18 },
118-
}
118+
},
119+
zircuit: {
120+
'0x4200000000000000000000000000000000000006': { coingeckoId: 'ethereum', decimals: 18 },
121+
},
119122
}
120123

121124
ibcChains.forEach(chain => fixBalancesTokens[chain] = { ...ibcMappings, ...(fixBalancesTokens[chain] || {}) })

projects/visor/config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,14 @@ const HYPE_REGISTRY = {
150150
zircuit: [
151151
["0xC27DDd78FC49875Fe6F844B72bbf31DFBB099881", 1216191], // Gmeow
152152
["0x683292172E2175bd08e3927a5e72FC301b161300", 1216165], // Circuit
153+
["0x17307DaC1384719d263556aAcC3e62c0053FE25D", 4826564], // Ocelex
153154
],
154155
wc: [
155156
["0xC27DDd78FC49875Fe6F844B72bbf31DFBB099881", 4799965], // Uniswap
156157
],
158+
apechain: [
159+
["0xC27DDd78FC49875Fe6F844B72bbf31DFBB099881", 476343], // Camelot
160+
],
157161
};
158162

159163
Object.keys(HYPE_REGISTRY).forEach(chain => {

projects/visor/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const getTotalAmounts =
55
"function getTotalAmounts() view returns (uint256 total0, uint256 total1)";
66
const { getUniqueAddresses } = require("../helper/utils");
77
const config = require("./config");
8+
const { sumTokens2 } = require('../helper/unwrapLPs')
89

910
module.exports = {
1011
doublecounted: true,
@@ -53,7 +54,7 @@ Object.keys(config).forEach(chain => {
5354
api.add(token0s[i], total0);
5455
api.add(token1s[i], total1);
5556
});
56-
return api.getBalances()
57+
return sumTokens2({ api })
5758
}
5859
}
5960
})

0 commit comments

Comments
 (0)