From a515b1d0b36ea1780a38cd2fe4c4eadd45e7e649 Mon Sep 17 00:00:00 2001 From: 0xgnek <0xgnek@gmail.com> Date: Wed, 10 Apr 2024 14:29:52 +0000 Subject: [PATCH] fix type --- dexs/increment-protocol/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dexs/increment-protocol/index.ts b/dexs/increment-protocol/index.ts index 5b03779bc4..95df7609ec 100644 --- a/dexs/increment-protocol/index.ts +++ b/dexs/increment-protocol/index.ts @@ -23,8 +23,7 @@ export default { const volumeData = await request(subgraphUrl, volumeQuery, { endTimestamp: endTimestamp ?? Math.floor(Date.now() / 1000) }); - let dailyVolume = 0; - dailyVolume += volumeData.dailyCandles.reduce( + const dailyVolume = volumeData.dailyCandles.reduce( (acc, { volume }) => acc + volume * 10 ** -18, 0 );