Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
AgoL5866 committed Jan 20, 2025
1 parent da58ed9 commit 49e7c1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/brbtc/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module.exports = {
async function tvl(api) {
const cfg = chainConfigs[api.chain] ?? {}
if (!cfg) return;
if (cfg.staking.kernel) {
if (cfg.staking && cfg.staking.kernel) {
const stakingCfg = cfg.staking.kernel
const stakingToken = stakingCfg.assets[0]
const stakingBalance = await api.call({
Expand All @@ -52,6 +52,6 @@ async function tvl(api) {
return sumTokens2({ api, owner: cfg.vault, tokens: cfg.assets })
}

['bsc'].forEach(chain => {
['ethereum', 'bsc'].forEach(chain => {
module.exports[chain] = { tvl: tvl }
})

0 comments on commit 49e7c1c

Please sign in to comment.