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