We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 727872a commit 092d22aCopy full SHA for 092d22a
projects/zoth/index.js
@@ -6,9 +6,7 @@ Object.keys(vaultManagers).forEach(chain => {
6
module.exports[chain] = {
7
tvl: async (api) => {
8
const { details } = await api.call({ abi, target: vaultManagers[chain], })
9
- details.map(({ collateralAddress, subVaultAddress }) => {
10
- api.add(collateralAddress, subVaultAddress)
11
- })
+ await api.sumTokens({ tokensAndOwners: details.map(({ collateralAddress, subVaultAddress }) => [collateralAddress, subVaultAddress]) })
12
}
13
14
})
0 commit comments