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

@ -136,6 +136,7 @@ internal class NotificationsModel @Inject constructor(
val currencyCheck = getCurrencyCheckUseCase(
userWalletId = userWalletId,
currencyStatus = cryptoCurrencyStatus,
feeCurrencyStatus = feeCryptoCurrencyStatus,
amount = sendingAmount,
fee = feeValue,
recipientAddress = destinationAddress,

View file

@ -772,6 +772,7 @@ internal class StakingModel @Inject constructor(
val currencyStatus = getCurrencyCheckUseCase(
userWalletId = userWalletId,
currencyStatus = cryptoCurrencyStatus,
feeCurrencyStatus = feeCryptoCurrencyStatus,
amount = amount,
fee = fee,
feeCurrencyBalanceAfterTransaction = balanceAfterTransaction,

View file

@ -92,6 +92,7 @@ internal class SwapInteractorImpl @AssistedInject constructor(
private val amountFormatter: AmountFormatter,
private val rampStateManager: RampStateManager,
private val singleAccountStatusListSupplier: SingleAccountStatusListSupplier,
private val getFeePaidCryptoCurrencyStatusSyncUseCase: GetFeePaidCryptoCurrencyStatusSyncUseCase,
private val accountsFeatureToggles: AccountsFeatureToggles,
@Assisted private val userWalletId: UserWalletId,
) : SwapInteractor {
@ -631,9 +632,14 @@ internal class SwapInteractorImpl @AssistedInject constructor(
} else {
amount
}
val feePaidCurrencyStatus = getFeePaidCryptoCurrencyStatusSyncUseCase(
userWalletId = userWalletId,
cryptoCurrencyStatus = fromTokenStatus,
).getOrNull()
val currencyCheck = getCurrencyCheckUseCase(
userWalletId = userWalletId,
currencyStatus = fromTokenStatus,
feeCurrencyStatus = feePaidCurrencyStatus,
amount = amountToRequest.value,
fee = fee,
feeCurrencyBalanceAfterTransaction = balanceAfterTransaction,