Updated on 2026-08-14

This commit is contained in:
Tangem 2026-04-02 11:22:06 +04:00
parent 50d082bf95
commit bb2877e36c
6 changed files with 225 additions and 7 deletions

View file

@ -16,6 +16,7 @@ sealed class SendDestinationComponentParams {
abstract val analyticsSendSource: CommonSendAnalyticEvents.CommonSendSource
abstract val userWalletId: UserWalletId
abstract val cryptoCurrency: CryptoCurrency
abstract val isAllowSelfSend: Boolean
data class DestinationParams(
override val state: DestinationUM,
@ -27,6 +28,7 @@ sealed class SendDestinationComponentParams {
val isBalanceHidingFlow: StateFlow<Boolean>,
val currentRoute: Flow<DestinationRoute>,
val callback: SendDestinationComponent.ModelCallback,
override val isAllowSelfSend: Boolean = false,
) : SendDestinationComponentParams()
data class DestinationBlockParams(
@ -37,5 +39,6 @@ sealed class SendDestinationComponentParams {
override val cryptoCurrency: CryptoCurrency,
val blockClickEnableFlow: StateFlow<Boolean>,
val predefinedValues: PredefinedValues,
override val isAllowSelfSend: Boolean = false,
) : SendDestinationComponentParams()
}

View file

@ -288,6 +288,7 @@ internal class SendDestinationModel @Inject constructor(
network = cryptoCurrency.network,
address = address,
senderAddresses = senderAddresses.value,
allowSelfSend = params.isAllowSelfSend,
)
val memoValidationResult = validateWalletMemoUseCase(
userWalletId = userWalletId,