Skip to content

Commit

Permalink
feat: ✨ improve chain revenue cache
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideSegullo committed May 8, 2024
1 parent 7e56c46 commit c0a54ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hooks/usePerpetualMarketsStats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export const usePerpetualMarketsStats = () => {
}
},
refetchOnWindowFocus: false,
cacheTime: 1_000 * 60 * 5, // 5 minutes
staleTime: 1_000 * 60 * 10, // 10 minutes
});

const feesEarned = useMemo(() => {
Expand Down

0 comments on commit c0a54ca

Please sign in to comment.