Skip to content

Commit

Permalink
feat: added Finceptor folder for listing (#11274)
Browse files Browse the repository at this point in the history
* feat: added `Finceptor` folder for listing

* code refactor

---------

Co-authored-by: g1nt0ki <[email protected]>
  • Loading branch information
emredonmez98 and g1nt0ki authored Aug 13, 2024
1 parent 8c4b92c commit 2774b99
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions projects/finceptor/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const FINC_TOKEN_CONTRACT = '0xA856098dCBc1b2B3a9C96C35c32bC4f71E49AEd2';
const FINCEPTOR_STAKING_AMOUNTS_CONTRACT = '0xA8a15EC4D496521D3a4B70e3cC2c15fF1701E3BE';

async function staking(api) {
const stakedBalance = await api.call({ abi: 'uint256:totalStaked', target: FINCEPTOR_STAKING_AMOUNTS_CONTRACT, })
api.add(FINC_TOKEN_CONTRACT, stakedBalance)
}

module.exports = {
methodology: 'gets the total number of FINC tokens locked in all active staking contracts of Finceptor.',
bsc: {
tvl: () => ({}),
staking,
}
}

0 comments on commit 2774b99

Please sign in to comment.