@@ -8,7 +8,10 @@ import {
88} from '../../../../util/remoteFeatureFlag' ;
99import { isMoneyAccountEnabled } from '../../../../lib/Money/feature-flags' ;
1010import { WildcardTokenList } from '../../Earn/utils/wildcardTokenList' ;
11- import { MUSD_TOKEN , MUSD_TOKEN_ADDRESS } from '../../Earn/constants/musd' ;
11+ import {
12+ MUSD_TOKEN_ADDRESS ,
13+ getTokenDisplaySymbol ,
14+ } from '../../Earn/constants/musd' ;
1215import {
1316 MONEY_NO_FEE_TOKENS_FALLBACK ,
1417 ensureMonadMusdListed ,
@@ -180,17 +183,16 @@ const AAVE_TOKEN_ALIASES = new Set(['ausdc', 'ausdt', 'adai', 'ausdcn']);
180183 * Converts a raw token alias (e.g. "eth_usdc", "eth_ausdc", "musd") to its
181184 * display symbol:
182185 * - Strip the chain prefix ("eth_usdc" → "usdc")
183- * - mUSD keeps its branded casing: "musd" → "mUSD"
184186 * - Known aave tokens (see AAVE_TOKEN_ALIASES): "ausdc" → "aUSDC"
185187 * - All others: full uppercase ("usdc" → "USDC")
188+ *
189+ * mUSD casing is handled by address via getTokenDisplaySymbol at the call
190+ * site, not by alias here.
186191 */
187192const normalizeTokenSymbol = ( tokenAlias : string ) : string => {
188193 const underscoreIdx = tokenAlias . indexOf ( '_' ) ;
189194 const raw =
190195 underscoreIdx >= 0 ? tokenAlias . slice ( underscoreIdx + 1 ) : tokenAlias ;
191- if ( raw . toLowerCase ( ) === MUSD_TOKEN . symbol . toLowerCase ( ) ) {
192- return MUSD_TOKEN . symbol ;
193- }
194196 if ( AAVE_TOKEN_ALIASES . has ( raw . toLowerCase ( ) ) ) {
195197 return 'a' + raw . slice ( 1 ) . toUpperCase ( ) ;
196198 }
@@ -236,7 +238,9 @@ export const selectMoneyNoFeeDepositTokens = createSelector(
236238 }
237239
238240 const srcChainHex = route . sourceChain . toLowerCase ( ) ;
239- const symbol = normalizeTokenSymbol ( route . sourceTokenAlias ) ;
241+ const normalized = normalizeTokenSymbol ( route . sourceTokenAlias ) ;
242+ const symbol =
243+ getTokenDisplaySymbol ( route . sourceToken , normalized ) ?? normalized ;
240244
241245 if ( ! catalog [ srcChainHex ] ) catalog [ srcChainHex ] = [ ] ;
242246 if ( ! catalog [ srcChainHex ] . includes ( symbol ) ) {
0 commit comments