Updated on 2026-08-14

This commit is contained in:
Tangem 2026-06-12 13:43:44 +05:00
parent f6b98ab9fa
commit db16ba6cef
20 changed files with 618 additions and 96 deletions

View file

@ -63,6 +63,7 @@ internal class SingleWalletOnrampTransactionConverter(
timestampAgoFormatted = mapFormattedDate(value.timestamp),
activeStatus = value.status.toActiveStatusText(currency.name),
toAmount = stringReference(value.toAmount.format { crypto(currency) }),
toAmountValue = value.toAmount,
toFiatAmount = stringReference(
status.fiatRate?.multiply(value.toAmount).format {
fiat(
@ -73,6 +74,7 @@ internal class SingleWalletOnrampTransactionConverter(
),
toAmountSymbol = currency.symbol,
toCurrencyIcon = iconStateConverter.convert(currency),
toAddress = status.networkAddress?.defaultAddress?.value.orEmpty(),
fromAmount = stringReference(
value.fromAmount.format {
fiat(
@ -81,12 +83,14 @@ internal class SingleWalletOnrampTransactionConverter(
)
},
),
fromAmountValue = value.fromAmount,
fromFiatAmount = null,
fromAmountSymbol = value.fromCurrency.code,
fromCurrencyIcon = CurrencyIconState.FiatIcon(
url = value.fromCurrency.image,
fallbackResId = R.drawable.ic_currency_24,
),
fromAddress = null,
iconState = value.status.toIconState(),
onGoToProviderClick = { url ->
analyticsEventHandler.send(TokenOnrampAnalyticsEvent.GoToProvider())