Skip to content

Commit

Permalink
Merge pull request #281 from EveripediaNetwork/hiiq-holders
Browse files Browse the repository at this point in the history
Set hiIQ holders cache duration to 24 hours
  • Loading branch information
Yomzy2223 authored Oct 29, 2024
2 parents 2d9770d + 77732a5 commit 84acbc2
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 84acbc2

Please sign in to comment.