pancake-frontend
pancake-frontend copied to clipboard
fix: Discrepancy between liquidity and farm aprs
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 useuseCallback
for better performance. - Updated calculations in
AprCalculator.tsx
to useBigNumber
for accuracy. - Refactored functions in
FarmV3ApyButton.tsx
to useuseMemo
for better performance.
✨ Ask PR-Codex anything about this PR by commenting with
/codex {your question}