File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -4,12 +4,10 @@ const REGISTRY_ADDR = "0x69764E3e0671747A7768A1C1AfB7C0C39868CC9e"
4
4
5
5
async function tvl ( timestamp , block , chainBlocks , { api } ) {
6
6
const aggregators = await api . call ( { target : REGISTRY_ADDR , abi : abi [ 'getVaults' ] , } )
7
- const totalAssets = aggregators . forEach ( ( aggregator ) => api . add ( aggregator . asset , aggregator . totalAssets ) )
7
+ aggregators . forEach ( ( aggregator ) => api . add ( aggregator . asset , aggregator . totalAssets ) )
8
8
9
9
const strategies = await api . call ( { target : REGISTRY_ADDR , abi : abi [ 'getStrategies' ] , } )
10
- const totalCollaterals = strategies . forEach ( ( strategy ) => api . add ( strategy . pairData . collateral , strategy . pairData . totalCollateral ) )
11
-
12
- return totalAssets + totalCollaterals ;
10
+ strategies . forEach ( ( strategy ) => api . add ( strategy . pairData . collateral , strategy . pairData . totalCollateral ) )
13
11
}
14
12
async function borrowed ( timestamp , block , chainBlocks , { api } ) {
15
13
const strategies = await api . call ( { target : REGISTRY_ADDR , abi : abi [ 'getStrategies' ] , } )
You can’t perform that action at this time.
0 commit comments