Updated on 2026-08-14
This commit is contained in:
parent
416e401d5b
commit
3b92d2924d
1 changed files with 6 additions and 2 deletions
|
|
@ -403,11 +403,15 @@ internal class SwapInteractorImpl @AssistedInject constructor(
|
|||
is TxFeeState.SingleFeeState -> feeState.fee.feeValue
|
||||
}
|
||||
val balanceAfterTransaction = getCoinBalanceAfterTransaction(fromTokenStatus, amount, includeFeeInAmount, fee)
|
||||
|
||||
val amountToRequest = if (includeFeeInAmount is IncludeFeeInAmount.Included) {
|
||||
includeFeeInAmount.amountSubtractFee
|
||||
} else {
|
||||
amount
|
||||
}
|
||||
val currencyCheck = getCurrencyCheckUseCase(
|
||||
userWalletId = userWalletId,
|
||||
currencyStatus = fromTokenStatus,
|
||||
amount = amount.value,
|
||||
amount = amountToRequest.value,
|
||||
fee = fee,
|
||||
feeCurrencyBalanceAfterTransaction = balanceAfterTransaction,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue