Skip to content

Commit d67f576

Browse files
authored
feat: add afCVX TVL (DefiLlama#10236)
1 parent 87ed957 commit d67f576

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

projects/asymmetry-fi/index.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ const AFETH = '0x0000000016E6Cb3038203c1129c8B4aEE7af7a11'
1111
const CVX = ADDRESSES.ethereum.CVX
1212
const VOTIUM = '0x00000069aBbB0B1Ad6975bcF753eEe15D318A0BF'
1313

14+
// afCVX
15+
const AFCVX = '0x8668a15b7b023Dc77B372a740FCb8939E15257Cf'
16+
1417
async function tvl(api) {
1518

1619
const tokensAndOwners = [
@@ -26,13 +29,19 @@ async function tvl(api) {
2629
[SFRXETH, AFETH],
2730
]
2831

32+
// CVX in afETH (Votium Strategy)
2933
const votiumAvailableCVX = await api.call({ abi: 'uint256:availableCvx', target: VOTIUM, })
3034
api.add(CVX, votiumAvailableCVX)
35+
36+
// CVX in afCVX (Clever Strategy)
37+
const afCVXAvailableCVX = await api.call({ abi: 'uint256:totalAssets', target: AFCVX, })
38+
api.add(CVX, afCVXAvailableCVX)
39+
3140
return api.sumTokens({ tokensAndOwners })
3241
}
3342

3443
module.exports = {
35-
methodology: 'counts tvl on both afETH and safETH',
44+
methodology: 'counts tvl on afETH, safETH, and afCVX',
3645
ethereum: {
3746
tvl,
3847
},

0 commit comments

Comments
 (0)