1
- const ADDRESSES = require ( '../helper/coreAssets.json' )
2
- const { sumTokensExport } = require ( '../helper/unwrapLPs' )
1
+ const HONEY_ADDRESS = '0xFCBD14DC51f0A4d49d5E53C2E0950e0bC26d0Dce'
2
+ const GOLDISWAP_ADDRESS = '0xb7E448E5677D212B8C8Da7D6312E8Afc49800466'
3
+ const RUSD_ADDRESS = '0x09D4214C03D01F49544C0448DBE3A27f768F2b34'
4
+ const RUSDVAULT_ADDRESS = '0x8f65453BF050233d3BD6a08A5Eb53C1fD73312EC'
5
+ const UNIBTC_ADDRESS = '0xC3827A4BC8224ee2D116637023b124CED6db6e90'
6
+ const UNIBTCVAULT_ADDRESS = '0x8742DB52a4EAEFE88bE5D3431980E221aaAA1EE3'
7
+ const RSETH_ADDRESS = '0x4186BFC76E2E237523CBC30FD220FE055156b41F'
8
+ const RSETHVAULT_ADDRESS = '0xE4dC8142CEd52C547384032e43379b0514341c22'
9
+
10
+ async function tvl ( api ) {
11
+ const goldiswapBal = await api . call ( {
12
+ abi : 'erc20:balanceOf' ,
13
+ target : HONEY_ADDRESS ,
14
+ params : [ GOLDISWAP_ADDRESS ]
15
+ } )
16
+ api . add ( HONEY_ADDRESS , goldiswapBal )
17
+
18
+ const rusdvaultBal = await api . call ( {
19
+ abi : 'erc20:balanceOf' ,
20
+ target : RUSD_ADDRESS ,
21
+ params : [ RUSDVAULT_ADDRESS ]
22
+ } )
23
+ api . add ( RUSD_ADDRESS , rusdvaultBal )
24
+
25
+ const unibtcvaultBal = await api . call ( {
26
+ abi : 'erc20:balanceOf' ,
27
+ target : UNIBTC_ADDRESS ,
28
+ params : [ UNIBTCVAULT_ADDRESS ]
29
+ } )
30
+ api . add ( UNIBTC_ADDRESS , unibtcvaultBal )
31
+
32
+ const rsethvaultBal = await api . call ( {
33
+ abi : 'erc20:balanceOf' ,
34
+ target : RSETH_ADDRESS ,
35
+ params : [ RSETHVAULT_ADDRESS ]
36
+ } )
37
+ api . add ( RSETH_ADDRESS , rsethvaultBal )
38
+ }
3
39
4
40
module . exports = {
41
+ methodology : "The TVL metric counts the amount of Honey in Goldiswap and the amount of the deposit token in the rUSD, uniBTC, and rsETH Goldivaults." ,
5
42
berachain : {
6
- tvl : sumTokensExport ( { owner : '0xb7E448E5677D212B8C8Da7D6312E8Afc49800466' , token : ADDRESSES . berachain . HONEY } )
43
+ tvl
7
44
}
8
45
}
0 commit comments