-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added
Finceptor
folder for listing
- Loading branch information
1 parent
a75176e
commit bbf0205
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, | ||
} | ||
}; |