From 926184f33678190bdb9310ffbd495d017bd7b746 Mon Sep 17 00:00:00 2001 From: g1nt0ki <99907941+g1nt0ki@users.noreply.github.com> Date: Wed, 21 Aug 2024 13:34:15 +0200 Subject: [PATCH] ankr cache: retain prev tokens --- projects/helper/token.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/helper/token.js b/projects/helper/token.js index 5fc065501dc2..c84b3e14d8d3 100644 --- a/projects/helper/token.js +++ b/projects/helper/token.js @@ -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) {