Updated on 2026-08-14

This commit is contained in:
Tangem 2025-12-10 16:14:08 +05:00
parent d28347ee21
commit 1b061d2d2b
6 changed files with 14 additions and 3 deletions

View file

@ -155,9 +155,10 @@ internal class DefaultCurrencyChecksRepository(
override suspend fun getRentExemptionError(
userWalletId: UserWalletId,
currencyStatus: CryptoCurrencyStatus,
currencyStatus: CryptoCurrencyStatus?,
balanceAfterTransaction: BigDecimal,
): CryptoCurrencyWarning.Rent? {
if (currencyStatus == null) return null
val rentData = walletManagersFacade.getRentInfo(userWalletId, currencyStatus.currency.network) ?: return null
return when {
balanceAfterTransaction.isZero() -> null