Updated on 2026-08-14

This commit is contained in:
Tangem 2025-12-02 14:52:28 +05:00
parent 61ba6daa97
commit dd42e71d66
2 changed files with 7 additions and 1 deletions

View file

@ -476,6 +476,7 @@ object NotificationsFactory {
rentExemptionAmount: BigDecimal,
cryptoCurrency: CryptoCurrency,
) {
if (cryptoCurrency !is CryptoCurrency.Coin) return
add(
NotificationUM.Solana.RentExemptionDestination(
rentExemptionAmount = rentExemptionAmount,

View file

@ -1,7 +1,10 @@
package com.tangem.data.tokens.repository
import com.tangem.blockchain.blockchains.polkadot.ExistentialDepositProvider
import com.tangem.blockchain.common.*
import com.tangem.blockchain.common.FeeResourceAmountProvider
import com.tangem.blockchain.common.MinimumSendAmountProvider
import com.tangem.blockchain.common.ReserveAmountProvider
import com.tangem.blockchain.common.UtxoAmountLimitProvider
import com.tangem.data.tokens.converters.UtxoConverter
import com.tangem.domain.models.currency.CryptoCurrency
import com.tangem.domain.models.currency.CryptoCurrencyStatus
@ -129,6 +132,8 @@ internal class DefaultCurrencyChecksRepository(
userWalletId: UserWalletId,
currencyStatus: CryptoCurrencyStatus,
): CryptoCurrencyWarning.Rent? {
if (currencyStatus.currency !is CryptoCurrency.Coin) return null
val rentData = walletManagersFacade.getRentInfo(userWalletId, currencyStatus.currency.network) ?: return null
val balanceValue = currencyStatus.value as? CryptoCurrencyStatus.Loaded ?: return null
val stakingBalance = balanceValue.yieldBalance as? YieldBalance.Data