File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ const AFETH = '0x0000000016E6Cb3038203c1129c8B4aEE7af7a11'
11
11
const CVX = ADDRESSES . ethereum . CVX
12
12
const VOTIUM = '0x00000069aBbB0B1Ad6975bcF753eEe15D318A0BF'
13
13
14
+ // afCVX
15
+ const AFCVX = '0x8668a15b7b023Dc77B372a740FCb8939E15257Cf'
16
+
14
17
async function tvl ( api ) {
15
18
16
19
const tokensAndOwners = [
@@ -26,13 +29,19 @@ async function tvl(api) {
26
29
[ SFRXETH , AFETH ] ,
27
30
]
28
31
32
+ // CVX in afETH (Votium Strategy)
29
33
const votiumAvailableCVX = await api . call ( { abi : 'uint256:availableCvx' , target : VOTIUM , } )
30
34
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
+
31
40
return api . sumTokens ( { tokensAndOwners } )
32
41
}
33
42
34
43
module . exports = {
35
- methodology : 'counts tvl on both afETH and safETH ' ,
44
+ methodology : 'counts tvl on afETH, safETH, and afCVX ' ,
36
45
ethereum : {
37
46
tvl,
38
47
} ,
You can’t perform that action at this time.
0 commit comments