Skip to content

Commit

Permalink
Add IHF project adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
nghiahoang10 committed Jun 16, 2024
1 parent 716168a commit ec55fc3
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions projects/infinity-hedge-fund/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const TOKEN_CONTRACT = '0x3B9728bD65Ca2c11a817ce39A6e91808CceeF6FD';
const STAKING_CONTRACT = '0x042Fef60aD51f48C65E6106F9b950178910A3300';

async function tvl(api) {
const contractBalance = await api.call({
abi: 'erc20:balanceOf',
target: TOKEN_CONTRACT,
params: [STAKING_CONTRACT],
});

api.add(TOKEN_CONTRACT, contractBalance);
}

module.exports = {
methodology: 'Get the balance of tokens in staking contract',
base: {
tvl,
}
};

0 comments on commit ec55fc3

Please sign in to comment.