Updated on 2026-08-14
This commit is contained in:
parent
fa7a381e04
commit
845708d73c
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue