Skip to content

Commit 4f6c721

Browse files
authored
update tvl methodology (DefiLlama#9218)
1 parent 65068ea commit 4f6c721

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

projects/lazyotter/index.js

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
1-
const aaveVaults = [
2-
'0x7100409baaeda121ab92f663e3ddb898f11ff745',
3-
'0x844Ccc93888CAeBbAd91332FCa1045e6926a084d',
4-
]
1+
const aaveVaults = ["0x7100409baaeda121ab92f663e3ddb898f11ff745", "0x844Ccc93888CAeBbAd91332FCa1045e6926a084d"];
52

63
async function tvl(_, _1, _2, { api }) {
7-
const tokens = await api.multiCall({ abi: 'address:asset', calls: aaveVaults})
8-
const aTokens = await api.multiCall({ abi: 'address:aToken', calls: aaveVaults})
9-
const tokensAndOwners2 = [tokens.concat(aTokens), aaveVaults.concat(aaveVaults)]
10-
return api.sumTokens({ tokensAndOwners2 })
4+
const tokens = await api.multiCall({ abi: "address:asset", calls: aaveVaults });
5+
const aTokens = await api.multiCall({ abi: "address:aToken", calls: aaveVaults });
6+
const tokensAndOwners2 = [tokens.concat(aTokens), aaveVaults.concat(aaveVaults)];
7+
return api.sumTokens({ tokensAndOwners2 });
118
}
129

1310
module.exports = {
14-
methodology: "TVL: Returns the total assets owned by the LazyOtter Vault on Scroll.",
11+
methodology: "Returns the total assets owned by the LazyOtter Vault on Scroll.",
1512
scroll: {
1613
tvl,
1714
},

0 commit comments

Comments
 (0)