Add AVAX factory to config and fix balances for Ethereum token

This commit is contained in:
g1nt0ki
2024-04-03 08:08:57 +02:00
parent 147628e95c
commit ffa817deb0
4 changed files with 9 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ async function getTvl(
api.storedKey = storedKey
if (!isFetchFunction) {
let tvlBalances = await tvlFunction(api, ethBlock, chainBlocks, api);
if (!tvlBalances && Object.keys(api.getBalances()).length) tvlBalances = api.getBalances()
if (tvlBalances === undefined) tvlBalances = api.getBalances()
const tvlResults = await computeTVL(tvlBalances, "now");
await diplayUnknownTable({ tvlResults, storedKey, tvlBalances, })
usdTvls[storedKey] = tvlResults.usdTvl;