Skip to content

Commit 7a9438a

Browse files
add WBTC vault
1 parent 2831baa commit 7a9438a

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

projects/bits/index.js

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,22 @@ const ADDRESSES = require('../helper/coreAssets.json')
22
const { sumTokens2 } = require('../helper/unwrapLPs')
33

44
const BITS_VAULTS = [
5-
'0x0000000000000000000000000000000000000000', // add finalized address here
5+
'0x02ad570A8f361c1F8ba630D015fcA02862F2478f', // WBTC vault on Ethereum
66
]
77

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
1110

12-
// Token configuration for different vaults - only COREBTC is supported
11+
// Token configuration for different vaults - only WBTC is supported
1312
const VAULT_TOKENS = {
14-
[BITS_VAULTS[0]]: [COREBTC],
13+
[BITS_VAULTS[0]]: [WBTC],
1514
}
1615

1716
async function tvl(api) {
1817
// Track TVL for all vaults
1918
for (const vault of BITS_VAULTS) {
2019

21-
const tokens = VAULT_TOKENS[vault] || [COREBTC]
20+
const tokens = VAULT_TOKENS[vault] || [WBTC]
2221

2322
// Get balances for each token in the vault
2423
for (const token of tokens) {
@@ -33,9 +32,9 @@ async function tvl(api) {
3332
}
3433

3534
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.',
3736
start: 1749621314, // Replace with actual start timestamp
38-
core: {
37+
ethereum: {
3938
tvl,
4039
}
4140
}

0 commit comments

Comments
 (0)