@@ -2,23 +2,22 @@ const ADDRESSES = require('../helper/coreAssets.json')
2
2
const { sumTokens2 } = require ( '../helper/unwrapLPs' )
3
3
4
4
const BITS_VAULTS = [
5
- '0x0000000000000000000000000000000000000000 ' , // add finalized address here
5
+ '0x02ad570A8f361c1F8ba630D015fcA02862F2478f ' , // WBTC vault on Ethereum
6
6
]
7
7
8
- // CoreDAO token addresses
9
- const WCORE = ADDRESSES . core . WCORE
10
- const COREBTC = ADDRESSES . core . coreBTC
8
+ // Ethereum token addresses
9
+ const WBTC = ADDRESSES . ethereum . WBTC
11
10
12
- // Token configuration for different vaults - only COREBTC is supported
11
+ // Token configuration for different vaults - only WBTC is supported
13
12
const VAULT_TOKENS = {
14
- [ BITS_VAULTS [ 0 ] ] : [ COREBTC ] ,
13
+ [ BITS_VAULTS [ 0 ] ] : [ WBTC ] ,
15
14
}
16
15
17
16
async function tvl ( api ) {
18
17
// Track TVL for all vaults
19
18
for ( const vault of BITS_VAULTS ) {
20
19
21
- const tokens = VAULT_TOKENS [ vault ] || [ COREBTC ]
20
+ const tokens = VAULT_TOKENS [ vault ] || [ WBTC ]
22
21
23
22
// Get balances for each token in the vault
24
23
for ( const token of tokens ) {
@@ -33,9 +32,9 @@ async function tvl(api) {
33
32
}
34
33
35
34
module . exports = {
36
- methodology : 'Counts the total value of COREBTC assets locked in Bits yield product contracts on CoreDAO network.' ,
35
+ methodology : 'Counts the total value of WBTC assets locked in Bits yield product contracts on Ethereum network.' ,
37
36
start : 1749621314 , // Replace with actual start timestamp
38
- core : {
37
+ ethereum : {
39
38
tvl,
40
39
}
41
40
}
0 commit comments