fix(money): correct mUSD casing and list it first on Monad in FAQs (MUSD-1158)#33190
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. |
…DisplaySymbol (MUSD-1158)
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
These changes affect the Money/Card/Ramps feature's token display and deposit FAQ token ordering. The SmokeMoney tag covers MetaMask Card and fiat on/off-ramp flows, which is exactly what these changes affect. No other feature areas (confirmations, swaps, accounts, browser, snaps, etc.) are impacted. The changes are not cosmetic — they fix a token symbol casing issue ('MUSD' → 'mUSD') and change ordering behavior (mUSD now appears first in the no-fee token list), which could affect user-facing display in the Money/deposit flows. SmokeMoney tests should validate these changes work correctly in the E2E environment. Performance Test Selection: |
|



Description
The Money "How it works" FAQ ("What tokens can I deposit into the Money account?") rendered mUSD with the raw registry casing "MUSD", and the Monad network line listed mUSD after USDC instead of first.
The FAQ token bullets are built from the
confirmations_relay_fixed_spreadremote flag viaselectMoneyNoFeeDepositTokens, whosenormalizeTokenSymboluppercased every non-aave alias, turning themusdalias into "MUSD". The hardcoded fallback list and theensureMonadMusdListedhelper indepositFaqTokens.tsused the same uppercase literal, and the helper appended mUSD to the end of the Monad list.This PR:
getTokenDisplaySymbolinselectMoneyNoFeeDepositTokens, so mUSD routes render the brandedmUSDcasing regardless of how the flag names the alias.MUSD_SYMBOLindepositFaqTokens.tsfromMUSD_TOKEN.symboland fixes the fallback list literals.ensureMonadMusdListedlist mUSD first on Monad, repositioning it to the front if it is already present elsewhere in the list.The only consumer of this pipeline is
MoneyHowItWorksView, so the blast radius is limited to the FAQ token list.Changelog
CHANGELOG entry: Fixed mUSD casing in the Money account FAQs and listed mUSD first for the Monad network
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/MUSD-1158
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
Display-only FAQ copy and selector ordering; no auth, transactions, or deposit logic changes.
Overview
Fixes how mUSD appears in the Money “How it works” FAQ deposit token list (
MoneyHowItWorksView), which is built fromselectMoneyNoFeeDepositTokensandformatNoFeeTokenBullets.selectMoneyNoFeeDepositTokensnow runs relay-route symbols throughgetTokenDisplaySymbol(by source token address) after alias normalization, so themusdalias no longer surfaces as "MUSD" from blanket uppercasing.depositFaqTokensusesMUSD_TOKEN.symbolfor the Monad FAQ entry, updates fallback literals tomUSD, and changesensureMonadMusdListedto put mUSD first on Monad (moving it to the front if it was already in the list).Reviewed by Cursor Bugbot for commit 9b899ce. Bugbot is set up for automated code reviews on this repo. Configure here.