Skip to content

Commit

Permalink
Fix cached token addresses filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
mudrila committed Mar 7, 2024
1 parent dfaa285 commit b5a93f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netlify/functions/tokenPrices.mts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ async function splitData(

// Let's pull out all of the expired addresses from our cache.
const expiredCachedTokenAddresses = cachedTokenPrices
.filter(tokenPrice => tokenPrice.metadata.fetched + config.cacheTime > config.now)
.filter(tokenPrice => tokenPrice.metadata.fetched + config.cacheTime < config.now)
.map(tokenPrice => tokenPrice.data.tokenAddress);

// Finally let's get a list of all of the token addresses that
Expand Down

0 comments on commit b5a93f5

Please sign in to comment.