Updated on 2026-08-14

This commit is contained in:
Tangem 2024-05-03 13:33:46 +05:00
parent fa7a381e04
commit 845708d73c

View file

@ -2,6 +2,7 @@ package com.tangem.feature.tokendetails.presentation.tokendetails.state.factory
import com.tangem.blockchain.common.Blockchain
import com.tangem.blockchainsdk.utils.fromNetworkId
import com.tangem.core.ui.utils.BigDecimalFormatter
import com.tangem.domain.tokens.model.CryptoCurrency
import com.tangem.domain.tokens.model.warnings.CryptoCurrencyWarning
import com.tangem.feature.tokendetails.presentation.tokendetails.state.TokenDetailsState
@ -65,7 +66,11 @@ internal class TokenDetailsNotificationConverter(
CryptoCurrencyWarning.SomeNetworksUnreachable -> NetworksUnreachable
is CryptoCurrencyWarning.SomeNetworksNoAccount -> NetworksNoAccount(
network = warning.amountCurrency.name,
amount = warning.amountToCreateAccount.toString(),
amount = BigDecimalFormatter.formatCryptoAmount(
cryptoAmount = warning.amountToCreateAccount,
cryptoCurrency = "",
decimals = warning.amountCurrency.decimals,
),
symbol = warning.amountCurrency.symbol,
)
is CryptoCurrencyWarning.TopUpWithoutReserve -> TopUpWithoutReserve