From b1eed963c40bca02a2db15520a9397bd62966b52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wiktor=20Tkaczy=C5=84ski?= Date: Fri, 30 Aug 2024 11:05:42 +0200 Subject: [PATCH] fix: reduce scoreApi chunk size to 500 gnosis.eth fails to load with 1000 --- src/compute.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compute.ts b/src/compute.ts index f3f0930..2d46524 100644 --- a/src/compute.ts +++ b/src/compute.ts @@ -56,7 +56,7 @@ async function getScores( delegatesAddresses: string[] ): Promise> { const chunks = delegatesAddresses.reduce((acc, address, i) => { - const chunkIndex = Math.floor(i / 1000); + const chunkIndex = Math.floor(i / 500); if (!acc[chunkIndex]) acc[chunkIndex] = []; acc[chunkIndex].push(address); return acc;