From bbf02050a0cf768cc0c5567a50f3ec51fdea50db Mon Sep 17 00:00:00 2001 From: emredonmez98 Date: Tue, 13 Aug 2024 16:27:30 +0300 Subject: [PATCH] feat: added `Finceptor` folder for listing --- projects/finceptor/index.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 projects/finceptor/index.js diff --git a/projects/finceptor/index.js b/projects/finceptor/index.js new file mode 100644 index 000000000000..5f019882abed --- /dev/null +++ b/projects/finceptor/index.js @@ -0,0 +1,19 @@ +const FINC_TOKEN_CONTRACT = '0xA856098dCBc1b2B3a9C96C35c32bC4f71E49AEd2'; +const FINCEPTOR_STAKING_AMOUNTS_CONTRACT = '0xA8a15EC4D496521D3a4B70e3cC2c15fF1701E3BE'; + +async function tvl(api) { + const stakedBalance = await api.call({ + abi: 'uint256:totalStaked', + target: FINCEPTOR_STAKING_AMOUNTS_CONTRACT, + params: [], + }); + + 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, + } +}; \ No newline at end of file