Updated on 2026-08-14

This commit is contained in:
Tangem 2025-01-24 10:48:32 +03:00
parent 7d870833db
commit b8a3a6899f
9 changed files with 20 additions and 14 deletions

View file

@ -96,7 +96,12 @@ internal class SendNotificationFactory(
val recipientAddress = state.recipientState?.addressTextField?.value
val statusValue = cryptoCurrencyStatus.value as? CryptoCurrencyStatus.Loaded
val balanceAfterTransaction = statusValue?.let { it.amount - sendingAmount - feeValue }
val feeToSubtract = if (isSubtractAvailableProvider()) {
feeValue
} else {
BigDecimal.ZERO
}
val balanceAfterTransaction = statusValue?.let { it.amount - sendingAmount - feeToSubtract }
val currencyCheck = getCurrencyCheckUseCase(
userWalletId = userWalletId,
currencyStatus = cryptoCurrencyStatus,

View file

@ -1992,7 +1992,7 @@ internal class SwapInteractorImpl @AssistedInject constructor(
private suspend fun getFeePaidCurrency(currency: CryptoCurrency): FeePaidCurrency {
return currenciesRepository.getFeePaidCurrency(
userWalletId = userWalletId,
currency = currency,
network = currency.network,
)
}