Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions projects/felix-usdhl/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
const { staking } = require("../helper/staking");
async function tvl(api) {
const mToken = '0x866a2bf4e572cbcf37d5071a7a58503bfb36be1b';
const holder = '0xb50a96253abdf803d85efcdce07ad8becbc52bd5';
const balance = await api.call({
abi: 'erc20:balanceOf',
target: mToken,
params: [holder]
})

const usdValue = balance / 1e6;

return { 'usd-coin': usdValue }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use api.add(mToken, balance)

I have just added support for M on hyperliquid

}

module.exports = {
ethereum: {
tvl: staking('0x36f586A30502AE3afb555b8aA4dCc05d233c2ecE', '0x866a2bf4e572cbcf37d5071a7a58503bfb36be1b')

}
hyperliquid: {
tvl,
},
}
Loading