Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
<!-- 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 focuses on refactoring the fetching logic for `bCakeWrapperAddresses` and improving the usage of the `useV3FarmAPI` hook by utilizing `useMemo` for better performance. ### Detailed summary - In `fetcher.ts`, changed the mapping from `validReserveTokens` to `validLpTokens`. - Directly accessed `tokens.address` instead of using `getV2LiquidityToken`. - In `useV3FarmAPI.ts`, replaced `farms: farms ?? []` with `farms` for cleaner code. - Introduced `useMemo` to memoize `farms` based on `data`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
- Loading branch information