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], })