-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support v2 pools merkl rewards (#11099)
<!-- 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 integrating the `Merkl` feature into the application, enhancing the `MerklSection` component, and updating API endpoints for fetching `Merkl` data. It also refines the logic for calculating APR and improves the structure of the `Merkl` configuration. ### Detailed summary - Updated `AprTooltipContent` to simplify the `expired` condition. - Enhanced `MerklSection` with additional props. - Integrated `MerklSection` into `PoolV2Page` and adjusted rendering in `liquidity/[tokenId].tsx`. - Removed unnecessary `expired` logic in `PoolAprButton`. - Modified `merklPools.json` to include new `Merkl` pool addresses. - Updated API endpoint from `angle.money` to `merkl.xyz` for fetching APR data. - Refined logic in `fetcher.ts` for retrieving `Merkl` APR. - Adjusted `useMerkl` hook to support new API structure and handle user rewards. - Enhanced error handling and data parsing in `useMerklInfo`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
- Loading branch information
Showing
9 changed files
with
193 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.