From 49e7c1c9530219d183b2e8de6cfd0331f88d80d9 Mon Sep 17 00:00:00 2001 From: Jun Luo Date: Mon, 20 Jan 2025 17:40:20 +0800 Subject: [PATCH] update --- projects/brbtc/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/brbtc/index.js b/projects/brbtc/index.js index b9f6b82cf747..75cd3d46491a 100644 --- a/projects/brbtc/index.js +++ b/projects/brbtc/index.js @@ -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({ @@ -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 } }) \ No newline at end of file