Skip to content

Commit

Permalink
remove duplicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
tlatkdgus1 committed Dec 9, 2024
1 parent 72b9256 commit dd29df0
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions projects/bifi/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,])) })
}
}
})
Expand Down

0 comments on commit dd29df0

Please sign in to comment.