File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
2
2
const ADDRESSES = require ( '../helper/coreAssets.json' )
3
3
4
- const token = '0x09db87a538bd693e9d08544577d5ccfaa6373a48'
4
+ const YN_ETH = '0x09db87a538bd693e9d08544577d5ccfaa6373a48'
5
+ const YN_LSDE = '0x35Ec69A77B79c255e5d47D5A3BdbEFEfE342630c'
5
6
6
7
module . exports = {
7
8
ethereum : {
8
9
tvl : async ( api ) => {
9
- const ethBalance = await api . call ( { abi : 'uint256:totalAssets' , target : token } )
10
- api . add ( ADDRESSES . null , ethBalance )
11
- return api . getBalances ( )
10
+ const ynethBalance = await api . call ( { abi : 'uint256:totalAssets' , target : YN_ETH } )
11
+ api . add ( ADDRESSES . null , ynethBalance )
12
+ const lsdRegistry = '0x323C933df2523D5b0C756210446eeE0fB84270fd'
13
+ const lsds = await api . call ( { abi : 'address[]:getAssets' , target : lsdRegistry } )
14
+ const bals = await api . call ( { abi : 'function assetBalances(address[]) view returns (uint256[])' , target : YN_LSDE , params : [ lsds ] } )
15
+ api . add ( lsds , bals )
12
16
}
13
17
} ,
14
18
}
You can’t perform that action at this time.
0 commit comments