mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-01-12 16:53:02 +08:00
Add AVAX factory to config and fix balances for Ethereum token
This commit is contained in:
2
test.js
2
test.js
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user