feat: add mUSD claim transaction type and related UI updates#25452
feat: add mUSD claim transaction type and related UI updates#25452PatrykLucka merged 19 commits intomainfrom
Conversation
|
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. |
0bda600 to
8ab35ae
Compare
e5106d1 to
223fba7
Compare
...rmations/components/activity/transaction-details-total-row/transaction-details-total-row.tsx
Outdated
Show resolved
Hide resolved
...rmations/components/activity/transaction-details-total-row/transaction-details-total-row.tsx
Outdated
Show resolved
Hide resolved
c366235 to
2d828b3
Compare
…related components
de861ab to
b6e5a44
Compare
Matt561
left a comment
There was a problem hiding this comment.
@PatrykLucka I'm seeing the claim tx in the activity list but not on the Asset Overview screen for mUSD. Is this intentional?
Looks good 👍 - Just one comment about fiat amounts not converting based on the user's currency preference.
cb0145b
...rmations/components/activity/transaction-details-total-row/transaction-details-total-row.tsx
Show resolved
Hide resolved
nickewansmith
left a comment
There was a problem hiding this comment.
Should we use what is on main for package.json and yarn.lock if you have no need for package.json or yarn.lock changes?
Discussed previous changes |
|
Adding |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
The changes are well-scoped to the Earn/mUSD feature and transaction display. While the package update could have broader implications, the changes are primarily additive (new transaction type support) rather than modifying existing behavior. The unit tests have been updated to cover the new functionality. No need for SmokePerps or SmokePredictions as those are separate features. No need for SmokeAccounts, SmokeIdentity, or SmokeNetworkAbstractions as account management, sync, and network selection are not affected. No need for SmokeTrade as this is about claiming rewards, not swaps/bridges. Performance Test Selection: |
|



Description
This PR adds comprehensive display support for
TransactionType.musdClaimtransactions (Merkl rewards claims) across the app. Previously, these transactions showed generic/empty information. Now users see meaningful details about their mUSD reward claims.Changes include:
This PR also fixes an issue where two loading toasts appeared during a claim transaction. Now only one is shown.
Changelog
CHANGELOG entry: Added detailed transaction display for mUSD reward claims showing claimed amount, network fee, and received total
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/MUSD-228
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Medium Risk
Touches transaction classification, decoding, and multiple UI surfaces (activity list, token details, confirmations), so regressions could hide or mislabel transactions or show incorrect fiat amounts; changes are mostly additive with tests covering key paths.
Overview
Adds first-class support for Merkl mUSD reward claims by emitting transactions as
TransactionType.musdClaim, detecting them in token activity filters, and decoding claim calldata to display claimed amount and fiat value in the activity list.Updates the redesigned Transaction Details flow to handle
musdClaim(hero amount, summary titles, network fee, received total) and introducesusePayFiatFormatterto show user-currency fiat formusdClaimwhile keeping other flows USD-default. Also adjusts navigation to the new details screen via a two-step route to avoid duplicate/toast/navigation issues, and adds localization + extensive unit test coverage for the new behavior.Written by Cursor Bugbot for commit 61436a8. This will update automatically on new commits. Configure here.