Updated on 2026-08-14

This commit is contained in:
Tangem 2026-03-02 20:17:20 +05:00
parent 282ab7a56a
commit 922b197172
27 changed files with 90 additions and 4 deletions

View file

@ -1,6 +1,9 @@
package com.tangem.features.swap.v2.impl.common
import com.tangem.common.ui.alerts.TransactionErrorDialogFactory
import com.tangem.core.analytics.api.AnalyticsEventHandler
import com.tangem.core.analytics.models.AnalyticsParam
import com.tangem.core.analytics.models.Basic
import com.tangem.core.decompose.di.ModelScoped
import com.tangem.core.decompose.ui.UiMessageSender
import com.tangem.core.ui.extensions.resourceReference
@ -25,6 +28,7 @@ internal class SwapAlertFactory @Inject constructor(
private val getWalletMetaInfoUseCase: GetWalletMetaInfoUseCase,
private val sendFeedbackEmailUseCase: SendFeedbackEmailUseCase,
private val transactionErrorDialogFactory: TransactionErrorDialogFactory,
private val analyticsEventHandler: AnalyticsEventHandler,
) {
fun getGenericErrorState(expressError: ExpressError, onFailedTxEmailClick: () -> Unit, popBack: () -> Unit = {}) {
uiMessageSender.send(
@ -83,6 +87,7 @@ internal class SwapAlertFactory @Inject constructor(
val metaInfo = getWalletMetaInfoUseCase(userWallet.walletId).getOrNull() ?: return
analyticsEventHandler.send(Basic.ButtonSupport(source = AnalyticsParam.ScreensSources.Swap))
sendFeedbackEmailUseCase(
type = FeedbackEmailType.SwapProblem(
walletMetaInfo = metaInfo,