Skip to content

Commit

Permalink
Fix farm APY.
Browse files Browse the repository at this point in the history
  • Loading branch information
totop716 committed Jul 23, 2022
1 parent 51e7a40 commit f8f6a71
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/pages/FarmPage/FarmsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,12 @@ const FarmsList: React.FC<FarmsListProps> = ({ bulkPairs, farmIndex }) => {
return 0;
}

const oneDayVolume = bulkPairs?.[pairId]?.oneDayVolumeUSD;
const reserveUSD = bulkPairs?.[pairId]?.reserveUSD;
const oneYearFeeAPY = getOneYearFee(oneDayVolume, reserveUSD);
const oneDayVolume = bulkPairs?.[pairId.toLowerCase()]?.oneDayVolumeUSD;
const reserveUSD = bulkPairs?.[pairId.toLowerCase()]?.reserveUSD;
const oneYearFeeAPY = getOneYearFee(
Number(oneDayVolume),
Number(reserveUSD),
);
return oneYearFeeAPY;
};

Expand Down

0 comments on commit f8f6a71

Please sign in to comment.