From dd29df0e1a8b282fd0b2efd16dd01463ed978d10 Mon Sep 17 00:00:00 2001 From: Ss5h Date: Tue, 10 Dec 2024 08:29:46 +0900 Subject: [PATCH] remove duplicate code --- projects/bifi/index.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/projects/bifi/index.js b/projects/bifi/index.js index 223e7f496555..30e5525e7e41 100644 --- a/projects/bifi/index.js +++ b/projects/bifi/index.js @@ -66,14 +66,7 @@ Object.keys(chainPools).forEach(chain => { const pools = chainPools[chain] module.exports[chain] = { tvl: async (api) => { - const tvl = await sumTokens2({ api, tokensAndOwners: Object.values(pools).map(({ pool, token }) => ([token, pool,])) }); - - if(chain === 'bfc') { - const wstBfcTvl = await wstBfc(api); - tvl[`bfc:${ADDRESSES.null}`] = String(Number(tvl[`bfc:${ADDRESSES.null}`]) + Number(wstBfcTvl)); - } - - return tvl + return sumTokens2({ api, tokensAndOwners: Object.values(pools).map(({ pool, token }) => ([token, pool,])) }) } } })