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 focuses on refactoring the farm configurations and APIs to
improve the handling of universal farms, including the removal of legacy
configurations and the introduction of new fetching methods for better
data management.
### Detailed summary
- Deleted multiple test files and components related to `HotTokenList`.
- Added `FARMS_API` endpoint for fetching farm data.
- Refactored farm exports in `index.ts`.
- Updated `useQuery` calls to use asynchronous functions for fetching
pool info.
- Replaced legacy farm configurations with universal farm
configurations.
- Introduced `fetchUniversalFarms` and `fetchAllUniversalFarms`
functions to handle farm data retrieval.
- Updated components to use the new farm API, including `useV3FarmAPI`.
- Removed deprecated farm configurations and associated imports.
- Enhanced error handling in fetching logic for better resilience.
> The following files were skipped due to too many changes:
`packages/farms/src/farms/zkSync.ts`,
`packages/farms/src/farms/base.ts`, `packages/farms/src/farms/eth.ts`,
`packages/farms/src/farms/arb.ts`, `packages/farms/src/farms/bsc.ts`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your
question}`
<!-- end pr-codex -->
0 commit comments