File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change 1
- const aaveVaults = [
2
- '0x7100409baaeda121ab92f663e3ddb898f11ff745' ,
3
- '0x844Ccc93888CAeBbAd91332FCa1045e6926a084d' ,
4
- ]
1
+ const aaveVaults = [ "0x7100409baaeda121ab92f663e3ddb898f11ff745" , "0x844Ccc93888CAeBbAd91332FCa1045e6926a084d" ] ;
5
2
6
3
async function tvl ( _ , _1 , _2 , { api } ) {
7
- const tokens = await api . multiCall ( { abi : ' address:asset' , calls : aaveVaults } )
8
- const aTokens = await api . multiCall ( { abi : ' address:aToken' , calls : aaveVaults } )
9
- const tokensAndOwners2 = [ tokens . concat ( aTokens ) , aaveVaults . concat ( aaveVaults ) ]
10
- return api . sumTokens ( { tokensAndOwners2 } )
4
+ const tokens = await api . multiCall ( { abi : " address:asset" , calls : aaveVaults } ) ;
5
+ const aTokens = await api . multiCall ( { abi : " address:aToken" , calls : aaveVaults } ) ;
6
+ const tokensAndOwners2 = [ tokens . concat ( aTokens ) , aaveVaults . concat ( aaveVaults ) ] ;
7
+ return api . sumTokens ( { tokensAndOwners2 } ) ;
11
8
}
12
9
13
10
module . exports = {
14
- methodology : "TVL: Returns the total assets owned by the LazyOtter Vault on Scroll." ,
11
+ methodology : "Returns the total assets owned by the LazyOtter Vault on Scroll." ,
15
12
scroll : {
16
13
tvl,
17
14
} ,
You can’t perform that action at this time.
0 commit comments