You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!--
Before opening a pull request, please read the [contributing
guidelines](https://github.com/pancakeswap/pancake-frontend/blob/develop/CONTRIBUTING.md)
first
-->
<!-- start pr-codex -->
---
## PR-Codex overview
This PR introduces a new `whitelistLabeledHooksList` feature in the
PancakeSwap codebase, enhancing the handling of hooks by adding a
whitelist for certain hooks without metadata. Additionally, it optimizes
currency balance calculations using `useMemo` across several components.
### Detailed summary
- Added `whitelistLabeledHooksList` to manage whitelisted hooks.
- Introduced `whitelisted hooks` in
`packages/infinity-sdk/src/constants/hooksList/bsc.ts`.
- Updated multiple components to utilize `useMemo` for currency balance
calculations.
- Refactored `useCurrencyBalances` to improve performance.
- Enhanced `PoolTokenOverview` to check if hooks are whitelisted.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your
question}`
<!-- end pr-codex -->
---------
Co-authored-by: Chef Jerry <[email protected]>
0 commit comments