fix(rewards): Update mUSD calculator input max to 10M#30202
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. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
No E2E tests exist for the mUSD calculator specifically, and these changes don't affect any shared components (navigation, modals, confirmations, browser, accounts) that would cause existing E2E tests to break. The changes are purely cosmetic/display improvements within a self-contained feature component. No E2E tags are warranted. Performance Test Selection: |
|



Description
-- text input now accepts up to 10,000,000
-- slider scale remains capped at 10,000
Simulator.Screen.Recording.-.E2E.Test.-.2026-05-14.at.13.45.30.mov
Changelog
CHANGELOG entry: null
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist
Note
Low Risk
Low risk: localized UI/input/formatting changes to the Rewards mUSD calculator with updated tests; no auth, network, or persistence logic touched.
Overview
The mUSD Rewards calculator now accepts typed amounts up to
10,000,000while keeping the slider scale capped at10,000, with the slider thumb visually pinned at max when the typed value exceeds the slider range and returning to slider scale on the next slider interaction.Yearly earnings display switches to compact USD formatting (e.g.,
$123K) when the input amount is>= 100,000, enabled by extendingformatCompactUsdto support an optionalmaximumFractionDigitssetting.Tests are updated/added to cover the new input cap behavior, slider resync behavior, and compact earnings formatting.
Reviewed by Cursor Bugbot for commit bb7f98a. Bugbot is set up for automated code reviews on this repo. Configure here.