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

chore: Remove turkey banner and spread reduce

Open memoyil opened this issue 4 months ago • 4 comments


PR-Codex overview

This PR primarily focuses on optimizing the use of the reduce method across various components by replacing object spread syntax with direct assignments to improve performance and readability.

Detailed summary

  • In pools.ts, changed return of reduce to use accum.push.
  • In StableV3Selector.tsx, modified reduce to directly assign values instead of spreading.
  • Similar changes made in IncreaseLiquidityV3.tsx, V3FormView/index.tsx, and FeeSelector.tsx.
  • Updated maxAmounts calculation in AddStableLiquidity/index.tsx to use useMemo with direct assignments.
  • Refactored useMultipleBannerConfig to remove a banner entry.
  • Enhanced usePositionsByUserFarms and useV3BoostedLiquidityX to use direct assignments in reduce.

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

memoyil avatar Oct 19 '24 07:10 memoyil