Skip to content

Commit 3453009

Browse files
Co-authored-by: Eden <[email protected]>
1 parent 1b89e30 commit 3453009

File tree

1 file changed

+29
-7
lines changed

1 file changed

+29
-7
lines changed

projects/imf-money/index.js

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,33 @@
1-
const { sumTokensExport } = require('../helper/unwrapLPs')
2-
const PEPE_TOKEN_CONTRACT = '0x6982508145454Ce325dDbE47a25d4ec3d2311933';
3-
const MOG_TOKEN_CONTRACT = '0xaaee1a9723aadb7afa2810263653a34ba2c21c7a';
4-
const LOCKED_MONEY_CONTRACT = '0x30F75834cB406b7093208Fda7F689938aCBD1EeB'; //wallet that has all the locked money
1+
const { sumTokens2 } = require('../helper/unwrapLPs');
2+
const { getCuratorTvl } = require("../helper/curators");
3+
4+
const configs = {
5+
methodology: 'Count all assets are deposited in all vaults curated by the IMF.',
6+
blockchains: {
7+
ethereum: {
8+
morphoVaultOwners: [
9+
'0x6b22171a3eB9CF39C0f3e56C4713F2E30e1Ba262',
10+
],
11+
},
12+
}
13+
}
514

615
module.exports = {
7-
methodology: 'Sums the value of deposited memes',
16+
doublecounted: true,
17+
methodology: configs.methodology,
818
ethereum: {
9-
tvl: sumTokensExport({ owner: LOCKED_MONEY_CONTRACT, tokens: [PEPE_TOKEN_CONTRACT,MOG_TOKEN_CONTRACT]}),
19+
tvl: async (api) => {
20+
// v1
21+
await sumTokens2({api, owner: '0x30F75834cB406b7093208Fda7F689938aCBD1EeB', tokens: [
22+
'0x6982508145454Ce325dDbE47a25d4ec3d2311933',
23+
'0x698b1d54e936b9f772b8f58447194bbc82ec1933',
24+
'0xaaee1a9723aadb7afa2810263653a34ba2c21c7a',
25+
'0x699ec925118567b6475fe495327ba0a778234aaa',
26+
'0x960fCE8724aA127184B6d13Af41a711755236c77',
27+
]});
28+
29+
// v2 - vault on Morpho Blue
30+
await getCuratorTvl(api, configs.blockchains.ethereum)
31+
}
1032
}
11-
};
33+
}

0 commit comments

Comments
 (0)