Updated on 2026-08-14

This commit is contained in:
Tangem 2023-10-17 20:11:01 +03:00
parent 93d91f0beb
commit 2985a541f1
10 changed files with 66 additions and 33 deletions

View file

@ -58,6 +58,7 @@ internal class WalletSingleCurrencyLoadedBalanceConverter(
return when (status) {
is CryptoCurrencyStatus.NoQuote,
is CryptoCurrencyStatus.Loaded,
is CryptoCurrencyStatus.NoAmount,
-> MarketPriceBlockState.Content(
currencySymbol = currencyName,
price = formatPrice(status, appCurrencyProvider()),
@ -92,6 +93,7 @@ internal class WalletSingleCurrencyLoadedBalanceConverter(
is CryptoCurrencyStatus.NoQuote,
is CryptoCurrencyStatus.Loaded,
is CryptoCurrencyStatus.NoAccount,
is CryptoCurrencyStatus.NoAmount,
-> {
WalletCardState.Content(
id = selectedWallet.id,

View file

@ -28,6 +28,7 @@ internal class CryptoCurrencyStatusToTokenItemConverter(
-> value.mapToTokenItemState()
is CryptoCurrencyStatus.MissedDerivation -> value.mapToNoAddressTokenItemState()
is CryptoCurrencyStatus.Unreachable,
is CryptoCurrencyStatus.NoAmount,
-> value.mapToUnreachableTokenItemState()
}
}