Skip to content

Commit

Permalink
use ankr api for fetching ethereum tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
g1nt0ki authored and tlatkdgus1 committed Nov 25, 2024
1 parent ca6dc51 commit 3e30cf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/helper/token.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
Expand Down

0 comments on commit 3e30cf4

Please sign in to comment.