From 77732a59f648760a78c5fc4ff4350a9ec9e82bc4 Mon Sep 17 00:00:00 2001 From: yomzy2223 Date: Mon, 28 Oct 2024 16:10:29 +0100 Subject: [PATCH] extend hiIQ holders cache duration to 24 hours --- src/utils/LockOverviewUtils.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/LockOverviewUtils.ts b/src/utils/LockOverviewUtils.ts index d23211c5..c92c594e 100644 --- a/src/utils/LockOverviewUtils.ts +++ b/src/utils/LockOverviewUtils.ts @@ -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