Skip to content

Commit

Permalink
feat: Pell Network add bsquared chain (#10657)
Browse files Browse the repository at this point in the history
  • Loading branch information
leeamijo committed Jun 15, 2024
1 parent c9093d3 commit d0fe2cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/pell/index.js
Original file line number Diff line number Diff line change
@@ -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], })
Expand Down

0 comments on commit d0fe2cf

Please sign in to comment.