From 179ee8f01b457fce452ff31f9aa67fc92a11693f Mon Sep 17 00:00:00 2001 From: Tangem Date: Thu, 16 Apr 2026 13:48:29 +0500 Subject: [PATCH] Updated on 2026-08-14 --- .../subcomponents/destination/model/SendDestinationModel.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/features/send-v2/impl/src/main/java/com/tangem/features/send/v2/subcomponents/destination/model/SendDestinationModel.kt b/features/send-v2/impl/src/main/java/com/tangem/features/send/v2/subcomponents/destination/model/SendDestinationModel.kt index 18ff42ff9e..4ca07d90b2 100644 --- a/features/send-v2/impl/src/main/java/com/tangem/features/send/v2/subcomponents/destination/model/SendDestinationModel.kt +++ b/features/send-v2/impl/src/main/java/com/tangem/features/send/v2/subcomponents/destination/model/SendDestinationModel.kt @@ -82,6 +82,8 @@ internal class SendDestinationModel @Inject constructor( private val cryptoCurrency = params.cryptoCurrency private val userWalletId = params.userWalletId + // In "Send with swap" flow, these are addresses in the destination network (not the actual sender addresses). + // Self-send validation must be skipped for them, so use only with params.isAllowSelfSend. private val senderAddresses = MutableStateFlow>(emptyList()) private val validationJobHolder = JobHolder() @@ -208,7 +210,7 @@ internal class SendDestinationModel @Inject constructor( SendDestinationRecentListTransformer( cryptoCurrency = cryptoCurrency, senderAddress = senderAddresses.value.firstOrNull()?.address, - isSelfSendAvailable = isSelfSendAvailable, + isSelfSendAvailable = params.isAllowSelfSend || isSelfSendAvailable, destinationWalletList = destinationWalletList, txHistoryList = txHistoryList, isAccountsMode = isAccountsMode,