Skip to content

Commit

Permalink
feat: Add ZKSync network for Harvest Finance TVL (#13116)
Browse files Browse the repository at this point in the history
  • Loading branch information
CryptJS13 authored Jan 16, 2025
1 parent 17f3e9a commit 30fa26f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions projects/harvest.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ const { sumTokens2 } = require('./helper/unwrapLPs')
const endpoint = "https://api.harvest.finance/vaults?key=41e90ced-d559-4433-b390-af424fdc76d6"
const chains = {
ethereum: 'eth',
// bsc: 'bsc',
arbitrum: 'arbitrum',
base: 'base',
polygon: 'matic'
polygon: 'matic',
era: 'zksync'
}

const tvl = async (api) => {
Expand All @@ -31,7 +31,7 @@ const tvl = async (api) => {
if (token) api.add(token, bals2[i])
})

return sumTokens2({ api, resolveLP: true, owners: vaults.map(({ vault }) => vault), resolveUniV3: api.chain !== 'base', permitFailure: true })
return sumTokens2({ api, resolveLP: true, owners: vaults.map(({ vault }) => vault), resolveUniV3: api.chain !== 'base' && api.chain !== 'era', permitFailure: true })
}

Object.keys(chains).forEach((chain) => {
Expand Down

0 comments on commit 30fa26f

Please sign in to comment.