pancake-frontend icon indicating copy to clipboard operation
pancake-frontend copied to clipboard

fix: Discrepancy between liquidity and farm aprs

Open memoyil opened this issue 8 months ago • 2 comments


PR-Codex overview

This PR focuses on improving code readability and performance by refactoring functions to use useCallback and useMemo.

Detailed summary

  • Refactored functions in SingleFarmV3Card.tsx to use useCallback for better performance.
  • Updated calculations in AprCalculator.tsx to use BigNumber for accuracy.
  • Refactored functions in FarmV3ApyButton.tsx to use useMemo for better performance.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

memoyil avatar Jun 17 '24 10:06 memoyil