feat: add "Your bonus" section to mUSD asset page#28479
Merged
Conversation
Replace the simple claimable bonus display with a richer "Your bonus" section that is always visible for eligible mUSD tokens. The section shows estimated annual bonus, lifetime bonus claimed, a 3% bonus tag, and a dynamic CTA button across 4 states (claim/accruing/no bonus). - Expose lifetimeBonusClaimed from useMerklRewards hook - Use live balance from Redux store via useTokenBalance - Add tooltip modal with detailed bonus explanations - Support onButtonPress callback in TooltipModal for "Learn more" URL - Add localization strings for all new UI elements
Contributor
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Reviewed by Cursor Bugbot for commit 7da6f78. Configure here.
Jwhiles
approved these changes
Apr 8, 2026
Jwhiles
left a comment
Contributor
There was a problem hiding this comment.
The code looks good to me! Though I've not had a chance to run this version of the app yet.
shane-t
approved these changes
Apr 8, 2026
Member
|
Tested and works |
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Replace the simple claimable bonus display with a richer "Your bonus" section that is always visible for eligible mUSD tokens. The section shows estimated annual bonus, lifetime bonus claimed, a 3% bonus tag, and a dynamic CTA button across 4 states (claim/accruing/no bonus).
Changelog
CHANGELOG entry:
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Medium Risk
Changes mUSD bonus UI/CTA logic and adds new rewards-derived fields (including numeric conversion from on-chain claimed amounts), which could affect what users see and when claims are enabled. Also extends the tooltip modal route params to support a callback, impacting modal behavior across callers if misused.
Overview
Replaces the mUSD asset page’s conditional “claimable bonus” widget with an always-visible “Your bonus” section that shows an estimated annual bonus (derived from live token balance and APY), a lifetime bonus claimed value, a
3% bonustag, and a dynamic CTA that switches between Claim / Accruing next bonus / No accruing bonus states.Extends Merkl rewards plumbing to surface
lifetimeBonusClaimedfromuseMerklRewardsthroughuseMerklBonusClaim, and updates claim analytics to record the actual CTA label while preventing claims when the CTA is disabled.Enhances the tooltip system by adding optional
onButtonPresssupport touseTooltipModal/TooltipModal(used here to open a newMUSD_LEARN_MOREURL), and updates/enlarges tests and test IDs to cover the new UI states and tooltip/analytics changes.Reviewed by Cursor Bugbot for commit 391da8a. Bugbot is set up for automated code reviews on this repo. Configure here.