Skip to content

Commit

Permalink
chore: align merkl data source (#11089)
Browse files Browse the repository at this point in the history
<!--
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 modifies the `fetch` call in the `getAllNetworkMerklApr`
function to remove a specific query parameter from the URL, potentially
broadening the API request to fetch data without filtering for
`pancakeswapv3`.

### Detailed summary
- Changed the API URL in `getAllNetworkMerklApr` from
`https://api.angle.money/v2/merkl?AMMs=pancakeswapv3` to
`https://api.angle.money/v2/merkl`.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your
question}`

<!-- end pr-codex -->
  • Loading branch information
Chef-Yogi authored Dec 27, 2024
1 parent 26ee45b commit 7781b48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/src/state/farmsV4/state/poolApr/fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export const getMerklApr = async (result: any, chainId: number) => {
}

export const getAllNetworkMerklApr = async (signal?: AbortSignal) => {
const resp = await fetch(`https://api.angle.money/v2/merkl?AMMs=pancakeswapv3`, { signal })
const resp = await fetch(`https://api.angle.money/v2/merkl`, { signal })
if (resp.ok) {
const result = await resp.json()
const aprs = await Promise.all(supportedChainIdV4.map((chainId) => getMerklApr(result, chainId)))
Expand Down

0 comments on commit 7781b48

Please sign in to comment.