File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
projects/stakestone-berastone Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change
1
+ const ADDRESSES = require ( '../helper/coreAssets.json' )
2
+
1
3
const vaultABI = {
2
- "getUnderlyings" : "function getUnderlyings() external view returns (address[])"
4
+ "getUnderlyings" : "function getUnderlyings() external view returns (address[])" ,
5
+ "assetsBorrowed" : "function assetsBorrowed() external view returns (uint256)"
3
6
}
4
7
5
8
const Vault = '0x8f88aE3798E8fF3D0e0DE7465A0863C9bbB577f0' ;
6
9
7
10
const Tvl = async ( api ) => {
11
+ const usedTVL = await api . call ( { abi : vaultABI . assetsBorrowed , target : Vault } )
12
+ api . add ( ADDRESSES . ethereum . WETH , usedTVL ) ;
13
+
8
14
const underlyings = await api . call ( { abi : vaultABI . getUnderlyings , target : Vault } )
9
15
return api . sumTokens ( { owner : Vault , tokens : underlyings } )
10
16
}
11
17
12
18
module . exports = {
19
+ doublecounted : true ,
13
20
ethereum : {
14
21
tvl : Tvl ,
15
22
}
You can’t perform that action at this time.
0 commit comments