Skip to content

Commit

Permalink
Merge pull request #250 from QuickSwap/hotfix/farms-apr
Browse files Browse the repository at this point in the history
Fix farm APY.
  • Loading branch information
sameepsi authored Jul 25, 2022
2 parents a591b5b + f8f6a71 commit 744a60e
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 744a60e

Please sign in to comment.