* use tvl function v2

* refactor addFundsInMasterChef

* replace usage of timestamp field

* more refactoring

* more refactoring
This commit is contained in:
g1nt0ki
2024-03-21 09:26:53 +01:00
committed by GitHub
parent 0033ae3106
commit f9f37f8d82
1181 changed files with 2332 additions and 4975 deletions

View File

@@ -17,14 +17,14 @@ const vaults = [
];
/*** Staking of native token BAS3D and BAS3D/ETH LP TVL Portion ***/
const pool2 = async (timestamp, ethBlock, chainBlocks, { api }) => {
const pool2 = async (api) => {
const staking_lpToken = await api.call({ abi: abi.stakingToken, target: coreRewards, })
return sumUnknownTokens({ api, tokens: [staking_lpToken], owners: [coreRewards, ethRewards], useDefaultCoreAssets: true })
};
/*** vaults TVL portion ***/
const bas3dTVL = async (timestamp, ethBlock, chainBlocks, { api }) => {
const bas3dTVL = async (api) => {
const tokens = await api.multiCall({ abi: abi.LPtoken, calls: vaults})
const bals = await api.multiCall({ abi: abi.balanceLPinSystem, calls: vaults})
api.addTokens(tokens, bals)