Skip to content

Commit

Permalink
extend hiIQ holders cache duration to 24 hours
Browse files Browse the repository at this point in the history
  • Loading branch information
Yomzy2223 committed Oct 28, 2024
1 parent 2d9770d commit 77732a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/LockOverviewUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ export const calculateAPR = (
export const getNumberOfHiIQHolders = async () => {
try {
const TOP_HOLDER_COUNT = 7
const response = await fetch(IQ_TOKEN_HOLDER)
const response = await fetch(IQ_TOKEN_HOLDER, {
next: { revalidate: 86400 },
})
const data = await response.json()
const totalHoldersCount =
data.pager?.holders?.total ?? data.token?.holdersCount ?? 0
Expand Down

0 comments on commit 77732a5

Please sign in to comment.