We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 960b6c7 + 5978b60 commit 6e069a6Copy full SHA for 6e069a6
projects/hyperithm/index.js
@@ -30,6 +30,24 @@ const vaultConfigs = {
30
}
31
};
32
33
+const mtokenConfig = {
34
+ ethereum: {
35
+ mHYPER: '0x9b5528528656DBC094765E2abB79F293c21191B9',
36
+ }
37
+};
38
+
39
const adapterExport = getCuratorExport(vaultConfigs);
40
41
+Object.keys(mtokenConfig).forEach(chain => {
42
+ const existingTvl = adapterExport[chain]?.tvl;
43
+ adapterExport[chain] = {
44
+ tvl: async (api) => {
45
+ await existingTvl?.(api);
46
+ const tokens = Object.values(mtokenConfig[api.chain]);
47
+ const bals = await api.multiCall({ abi: 'uint256:totalSupply', calls: tokens });
48
+ api.add(tokens, bals);
49
50
+ };
51
+});
52
53
module.exports = adapterExport;
0 commit comments