Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions prices/prices.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ export class PricesService {

if (!price?.usd) {
pricesQueryUpdateCountFailed += 1;
// bump timestamp on failure so we honour the 5-minute retry window
// instead of refetching on every block tick when a token has no price source
pricesQuery[addr] = { ...oldEntry, timestamp: Date.now() };
} else {
pricesQuery[addr] = {
...erc,
Expand Down
Loading