mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-04-30 13:52:23 +08:00
Tvl-v2 (#9466)
* use tvl function v2 * refactor addFundsInMasterChef * replace usage of timestamp field * more refactoring * more refactoring
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user