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 24dd550 commit c534a78Copy full SHA for c534a78
projects/fortunafi/index.js
@@ -20,16 +20,12 @@ const config = {
20
},
21
}
22
23
-module.exports = {
24
- misrepresentedTokens: true,
25
-}
26
-
27
Object.keys(config).forEach(chain => {
28
- const tConfig = config[chain]
+ const tokens = Object.values(config[chain])
29
module.exports[chain] = {
30
tvl: async (api) => {
31
- const nav = await api.multiCall({ abi: 'uint256:nav', calls: Object.values(tConfig), permitFailure: true })
32
- api.addCGToken('tether', nav.reduce((acc, i) => acc + (i ?? 0)/1e18, 0))
+ const supplies = await api.multiCall({ abi: 'uint256:totalSupply', calls: tokens})
+ api.add(tokens, supplies)
33
34
35
})
0 commit comments