Skip to content

Commit

Permalink
ankr cache: retain prev 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 938aec3 commit 926184f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/helper/token.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ async function ankrGetTokens(address, { onlyWhitelisted = true, skipCacheRead =
id: 42
}
};
const tokens = {}
const tokens = cache.tokens ?? {}
const { data: { result: { assets } } } = await axios.request(options)
const tokenCache = { timestamp: timeNow, tokens, }
for (const asset of assets) {
Expand Down

0 comments on commit 926184f

Please sign in to comment.