From 04fb2fb78ec93b843c0620530d207ec0174d112a Mon Sep 17 00:00:00 2001 From: iamoskvin <44796732+iamoskvin@users.noreply.github.com> Date: Mon, 27 May 2024 18:28:33 +0300 Subject: [PATCH] quick fix for the rewards page (#299) --- src/pages/Rewards/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/Rewards/index.tsx b/src/pages/Rewards/index.tsx index b52d820e..f79f22fb 100644 --- a/src/pages/Rewards/index.tsx +++ b/src/pages/Rewards/index.tsx @@ -472,7 +472,8 @@ export default function Rewards() { } const recentDate = rewardsData.date const pairDayData = pairsResp.data.pairDayDatas.find( - dayData => dayData.pairId === pair.poolAddress && dayData.date === recentDate + 'T00:00:00' + // dayData => dayData.pairId === pair.poolAddress && dayData.date === recentDate + 'T00:00:00' + dayData => dayData.pairId === pair.poolAddress //need to find any date from our indexer ) const aprFee = ((pairDayData.dailyVolumeUSD * 0.003) / pairDayData.reserveUSD) * 365 * 100 const aprStarknet = rewardsData.apr * 100