File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change
1
+ const abi = {
2
+ "getSmartVaultAssetBalances" : "function getSmartVaultAssetBalances(address, bool) external returns (uint256[] memory)"
3
+ }
4
+
5
+ const ethContract = "0x5d6ac99835b0dd42ed9ffc606170e59f75a88fde" ;
6
+ const spoolLens = '0x8aa6174333F75421903b2B5c70DdF8DA5D84f74F' ;
7
+
8
+ async function eth ( timestamp , ethBlock , chainBlocks , { api } ) {
9
+ const tvlETH = await api . call ( {
10
+ target : spoolLens ,
11
+ abi : abi [ "getSmartVaultAssetBalances" ] ,
12
+ params : [ ethContract , false ]
13
+ } ) ;
14
+ api . addGasToken ( tvlETH [ 0 ] )
15
+ return api . getBalances ( )
16
+ }
17
+
18
+ module . exports = {
19
+ methodology : 'TVL is counted as deposits routed to the underlying Liquid Staking protocols in the vault.' ,
20
+ doublecounted : true , // tokens are stored in underlying LSDs
21
+ misrepresentedTokens : true ,
22
+ ethereum : {
23
+ tvl : eth
24
+ }
25
+ }
You can’t perform that action at this time.
0 commit comments