Skip to content

Commit b802131

Browse files
authored
add lfbtc-cian-eth tvl && ylFBTC tvl (DefiLlama#14156)
1 parent f0c8d30 commit b802131

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

projects/cian-yl/index.js

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const config = {
88
"0xcc7E6dE27DdF225E24E8652F62101Dab4656E20A",
99
"0xd4Cc9b31e9eF33E392FF2f81AD52BE8523e0993b",
1010
"0x3D086B688D7c0362BE4f9600d626f622792c4a20",
11+
"0x8D76e7847dFbEA6e9F4C235CADF51586bA3560A2",
1112

1213
// bera
1314

@@ -32,10 +33,7 @@ const config = {
3233

3334
// sei
3435
"0x7fF67093231CE8DBC70c0A65b629ed080e66a7F0", // pumpbtc
35-
"0xe5DfcE87E75e92C61aeD31329716Cf3D85Cd9C8c", // ylBTCLST
36-
37-
// lfbtc-cian-eth
38-
"0x821d2e44984168d278C698fD742d5138c01bAAA2" // lfbtc-cian-eth
36+
"0xe5DfcE87E75e92C61aeD31329716Cf3D85Cd9C8c" // ylBTCLST
3937

4038
],
4139
optimism: ["0x907883da917ca9750ad202ff6395C4C6aB14e60E"],
@@ -53,6 +51,17 @@ Object.keys(config).forEach((chain) => {
5351
let vaults = config[chain].map(i => i.toLowerCase());
5452
vaults = [...new Set(vaults)];
5553
module.exports[chain] = {
56-
tvl: async (api) => api.erc4626Sum({ calls: vaults, isOG4626: true, permitFailure: true })
54+
tvl: async (api) => {
55+
if (chain === 'ethereum') {
56+
// ADD lfbtc-cian-eth balance
57+
const lfbtcCianBalance = await api.call({
58+
abi: 'erc20:balanceOf',
59+
target: "0xc152d5A599F83B3d0098cbAdb23FcE95F27Ff30B", // lfbtc-cian-eth
60+
params: ["0x821d2e44984168d278C698fD742d5138c01bAAA2"], // wfbtc wrapper
61+
});
62+
api.add("0xc152d5A599F83B3d0098cbAdb23FcE95F27Ff30B", lfbtcCianBalance);
63+
}
64+
return await api.erc4626Sum({ calls: vaults, isOG4626: true, permitFailure: true });
65+
}
5766
};
5867
});

0 commit comments

Comments
 (0)