Skip to content

Commit

Permalink
quick fix for the rewards page (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamoskvin authored May 27, 2024
1 parent f068a17 commit 04fb2fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/Rewards/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 04fb2fb

Please sign in to comment.