Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Support v2 pools merkl rewards #11099

Merged
merged 8 commits into from
Dec 30, 2024

Conversation

memoyil
Copy link
Collaborator

@memoyil memoyil commented Dec 28, 2024


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}

Copy link

vercel bot commented Dec 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 29, 2024 11:06am
7 Skipped Deployments
Name Status Preview Comments Updated (UTC)
aptos-web ⬜️ Ignored (Inspect) Visit Preview Dec 29, 2024 11:06am
blog ⬜️ Ignored (Inspect) Visit Preview Dec 29, 2024 11:06am
bridge ⬜️ Ignored (Inspect) Visit Preview Dec 29, 2024 11:06am
games ⬜️ Ignored (Inspect) Visit Preview Dec 29, 2024 11:06am
gamification ⬜️ Ignored (Inspect) Visit Preview Dec 29, 2024 11:06am
uikit ⬜️ Ignored (Inspect) Visit Preview Dec 29, 2024 11:06am
ton ⬜️ Skipped (Inspect) Dec 29, 2024 11:06am

Copy link

changeset-bot bot commented Dec 28, 2024

⚠️ No Changeset found

Latest commit: 514a0a5

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel vercel bot temporarily deployed to Preview – ton December 29, 2024 08:47 Inactive
@vercel vercel bot temporarily deployed to Preview – ton December 29, 2024 08:50 Inactive
@vercel vercel bot temporarily deployed to Preview – ton December 29, 2024 09:00 Inactive
@Chef-Yogi Chef-Yogi merged commit ab900ed into develop Dec 30, 2024
21 checks passed
@Chef-Yogi Chef-Yogi deleted the feature/feat_support_v2_pools_merkl_rewards branch December 30, 2024 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants