Skip to content

Commit 422203e

Browse files
committed
minor refactor
1 parent 2903315 commit 422203e

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

projects/intuition/index.js

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
1-
const ADDRESSES = require('../helper/coreAssets.json')
1+
const { sumTokensExport, nullAddress } = require('../helper/unwrapLPs');
22

33
const ETHMULTIVAULT = "0x430BbF52503Bd4801E51182f4cB9f8F534225DE5"; // Intuition's EthMultiVault contract address on Base mainnet
44

5-
async function tvl(api) {
6-
await api.sumTokens({ owners: [ETHMULTIVAULT], tokens: [ADDRESSES.null] })
7-
const bal = api.getBalances()
8-
return bal
9-
}
10-
115
module.exports = {
12-
methodology: "The TVL is calculated based on the current ETH balance held within Intuition's EthMultiVault contract on the Base mainnet.",
13-
base: {
14-
tvl
15-
}
6+
methodology: "The TVL is calculated based on the current ETH balance held within Intuition's EthMultiVault contract on the Base mainnet.",
7+
base: {
8+
tvl: sumTokensExport({ owner: ETHMULTIVAULT, tokens: [nullAddress] }),
9+
}
1610
}

0 commit comments

Comments
 (0)