Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
g1nt0ki committed Jun 16, 2024
1 parent ec55fc3 commit 10ba086
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions projects/infinity-hedge-fund/index.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
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);
}

const { staking } = require('../helper/staking')
module.exports = {
methodology: 'Get the balance of tokens in staking contract',
base: {
tvl,
}
};
base: {
tvl: () => ({}),
staking: staking('0x042Fef60aD51f48C65E6106F9b950178910A3300', '0x3B9728bD65Ca2c11a817ce39A6e91808CceeF6FD'),
}
}

0 comments on commit 10ba086

Please sign in to comment.