Updated on 2026-08-14
This commit is contained in:
parent
2c2c994e72
commit
9cd1741344
1 changed files with 6 additions and 1 deletions
|
|
@ -694,6 +694,11 @@ internal class SwapInteractorImpl @AssistedInject constructor(
|
|||
userWalletId: UserWalletId,
|
||||
): Throwable? {
|
||||
val currency = fromToken.currency
|
||||
val blockchain = currency.network.toBlockchain()
|
||||
// Stellar validation removed because swap uses destination = "0" and throws an error
|
||||
if (blockchain == Blockchain.Stellar) {
|
||||
return null
|
||||
}
|
||||
val fee = Fee.Common(
|
||||
amount = Amount(
|
||||
value = when (feeState) {
|
||||
|
|
@ -701,7 +706,7 @@ internal class SwapInteractorImpl @AssistedInject constructor(
|
|||
is TxFeeState.MultipleFeeState -> feeState.normalFee.feeValue
|
||||
is TxFeeState.SingleFeeState -> feeState.fee.feeValue
|
||||
},
|
||||
blockchain = currency.network.toBlockchain(),
|
||||
blockchain = blockchain,
|
||||
),
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue