Skip to content

Commit 6e069a6

Browse files
authored
Merge pull request #4 from hyperithm/hyperithm-1204
add mHYPER eth mainnet
2 parents 960b6c7 + 5978b60 commit 6e069a6

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

projects/hyperithm/index.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,24 @@ const vaultConfigs = {
3030
}
3131
};
3232

33+
const mtokenConfig = {
34+
ethereum: {
35+
mHYPER: '0x9b5528528656DBC094765E2abB79F293c21191B9',
36+
}
37+
};
38+
3339
const adapterExport = getCuratorExport(vaultConfigs);
3440

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+
3553
module.exports = adapterExport;

0 commit comments

Comments
 (0)