Skip to content

Commit 9c0ebe7

Browse files
committed
chore: remove conversion related stuff
1 parent ca99289 commit 9c0ebe7

2 files changed

Lines changed: 4 additions & 9 deletions

File tree

app/components/UI/Money/constants/activityStyles.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,7 @@ export function isIncomingMoneyTransactionMeta(tx: TransactionMeta): boolean {
6969
// EIP-7702 batch deposits: moneyAccountDeposit sits in nestedTransactions
7070
return (
7171
tx.nestedTransactions?.some(
72-
(nested) =>
73-
nested.type === EvmTransactionType.moneyAccountDeposit ||
74-
nested.type === EvmTransactionType.musdConversion,
72+
(nested) => nested.type === EvmTransactionType.moneyAccountDeposit,
7573
) ?? false
7674
);
7775
}

app/components/UI/Money/hooks/useMoneyTransactionDisplayInfo.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ function getLabelForTransactionType(type: TransactionType | undefined): string {
7171
case TransactionType.moneyAccountWithdraw:
7272
case TransactionType.simpleSend:
7373
return strings('money.transaction.sent');
74-
case TransactionType.musdConversion:
75-
return strings('money.transaction.converted');
7674
default:
7775
return strings('money.transaction.deposited');
7876
}
@@ -94,8 +92,7 @@ function getLabel(tx: TransactionMeta): string {
9492
const moneyNestedType = tx.nestedTransactions?.find(
9593
(nested) =>
9694
nested.type === TransactionType.moneyAccountDeposit ||
97-
nested.type === TransactionType.moneyAccountWithdraw ||
98-
nested.type === TransactionType.musdConversion,
95+
nested.type === TransactionType.moneyAccountWithdraw,
9996
)?.type;
10097
if (moneyNestedType) {
10198
return getLabelForTransactionType(moneyNestedType);
@@ -195,7 +192,7 @@ export function useMoneyTransactionDisplayInfo(
195192

196193
const sourceTokenSymbol = payToken?.symbol ?? nativeTicker;
197194
const sourceTokenImage = payToken?.image;
198-
195+
199196
const sourceTokenChainId =
200197
isNative && payTokenChainId ? payTokenChainId : undefined;
201198

@@ -209,7 +206,7 @@ export function useMoneyTransactionDisplayInfo(
209206
if (isNative) {
210207
// For native tokens requiredAssets[0].amount is stored
211208
// in USDC-equivalent 6-decimal units (the USD value of the deposit),
212-
// NOT in wei.
209+
// NOT in wei.
213210

214211
const nativeToUsdRate = nativeTicker
215212
? currencyRates?.[nativeTicker]?.conversionRate

0 commit comments

Comments
 (0)