Skip to content

Commit

Permalink
Fix mass influx of price relay requests (#813)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanWoodard authored Feb 19, 2024
1 parent d49b37b commit 29bde7d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion earn/src/pages/MarketsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,12 @@ export default function MarketsPage() {
const uniqueSymbols = Array.from(symbolSet.values());

// Return early if there's nothing new to fetch
if (uniqueSymbols.length === 0 || uniqueSymbols.every((symbol) => tokenQuotes.has(symbol))) {
if (
uniqueSymbols.length === 0 ||
uniqueSymbols.every((symbol) => {
return tokenQuotes.has(symbol) || (symbol === 'USDC.e' && tokenQuotes.has('USDC'));
})
) {
return;
}

Expand Down

0 comments on commit 29bde7d

Please sign in to comment.