pancake-frontend
pancake-frontend copied to clipboard
chore: Remove turkey banner and spread reduce
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 ofreduce
to useaccum.push
. - In
StableV3Selector.tsx
, modifiedreduce
to directly assign values instead of spreading. - Similar changes made in
IncreaseLiquidityV3.tsx
,V3FormView/index.tsx
, andFeeSelector.tsx
. - Updated
maxAmounts
calculation inAddStableLiquidity/index.tsx
to useuseMemo
with direct assignments. - Refactored
useMultipleBannerConfig
to remove a banner entry. - Enhanced
usePositionsByUserFarms
anduseV3BoostedLiquidityX
to use direct assignments inreduce
.
✨ Ask PR-Codex anything about this PR by commenting with
/codex {your question}