From d0fe2cf43a47e9c4d96b93873a7b89435d47e6d8 Mon Sep 17 00:00:00 2001 From: leeamijo <154820412+leeamijo@users.noreply.github.com> Date: Sat, 15 Jun 2024 17:23:39 +0800 Subject: [PATCH] feat: Pell Network add bsquared chain (#10657) --- projects/pell/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/pell/index.js b/projects/pell/index.js index 5a8ae0be27e..9d6365a47cb 100644 --- a/projects/pell/index.js +++ b/projects/pell/index.js @@ -1,12 +1,12 @@ const { sumTokens2 } = require('../helper/unwrapLPs') const { getConfig } = require('../helper/cache') -const chains = ['merlin', 'bouncebit', 'btr', 'bsc',] +const chains = ['merlin', 'bouncebit', 'btr', 'bsc', 'bsquared'] chains.forEach(chain => { module.exports[chain] = { tvl: async function (api) { - const { result } = await getConfig(`pell/${api.chain}`, `https://api.pell.network/v1/stakeList?chainId=${api.chainId}`) + const { result } = await getConfig(`pell/${api.chain}`, `https://api.pell.network/v1/stakeList?chainId=${api.chain === 'bsquared' ? 223 : api.chainId}`) const vaults = result.map(f => f.strategyAddress) const tokens = await api.multiCall({ abi: 'address:underlyingToken', calls: vaults }) return sumTokens2({ api, tokensAndOwners2: [tokens, vaults], })