From 3e30cf4b58edda000110509325e240986c01a187 Mon Sep 17 00:00:00 2001 From: g1nt0ki <99907941+g1nt0ki@users.noreply.github.com> Date: Mon, 19 Aug 2024 11:25:09 +0200 Subject: [PATCH] use ankr api for fetching ethereum tokens --- projects/helper/token.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/helper/token.js b/projects/helper/token.js index f122188e8901..5fc065501dc2 100644 --- a/projects/helper/token.js +++ b/projects/helper/token.js @@ -97,7 +97,7 @@ async function ankrGetTokens(address, { onlyWhitelisted = true, skipCacheRead = jsonrpc: '2.0', method: 'ankr_getAccountBalance', params: { - blockchain: Object.values(ankrChainMapping).filter(i => i !== 'eth'), + blockchain: Object.values(ankrChainMapping), onlyWhitelisted, nativeFirst: true, skipSyncCheck: true, @@ -117,7 +117,7 @@ async function ankrGetTokens(address, { onlyWhitelisted = true, skipCacheRead = for (const [chain, values] of Object.entries(tokens)) { tokens[chain] = getUniqueAddresses(values) } - tokens.eth = await getETHTokens(address, onlyWhitelisted) + // tokens.eth = await getETHTokens(address, onlyWhitelisted) await setCache(project, key, tokenCache) return tokens