From 74e0e1280b678ca37639d98ad5ff98b6b56fbed5 Mon Sep 17 00:00:00 2001 From: Tangem Date: Mon, 18 Nov 2024 12:30:17 +0500 Subject: [PATCH] Updated on 2026-08-14 --- .../feature/swap/presentation/SwapNotificationsFactory.kt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/features/swap/presentation/src/main/java/com/tangem/feature/swap/presentation/SwapNotificationsFactory.kt b/features/swap/presentation/src/main/java/com/tangem/feature/swap/presentation/SwapNotificationsFactory.kt index e5993fd356..0b65e1ab16 100644 --- a/features/swap/presentation/src/main/java/com/tangem/feature/swap/presentation/SwapNotificationsFactory.kt +++ b/features/swap/presentation/src/main/java/com/tangem/feature/swap/presentation/SwapNotificationsFactory.kt @@ -4,6 +4,7 @@ import com.tangem.common.ui.notifications.NotificationUM import com.tangem.common.ui.notifications.NotificationsFactory.addDustWarningNotification import com.tangem.common.ui.notifications.NotificationsFactory.addExistentialWarningNotification import com.tangem.common.ui.notifications.NotificationsFactory.addReserveAmountErrorNotification +import com.tangem.common.ui.notifications.NotificationsFactory.addTransactionLimitErrorNotification import com.tangem.common.ui.notifications.NotificationsFactory.addValidateTransactionNotifications import com.tangem.core.ui.extensions.TextReference import com.tangem.core.ui.format.bigdecimal.crypto @@ -191,6 +192,13 @@ internal class SwapNotificationsFactory( fromAmount = amountToRequest, onReduceAmount = actions.onReduceAmount, ) + addTransactionLimitErrorNotification( + utxoLimit = quoteModel.currencyCheck?.utxoAmountLimit, + cryptoCurrency = fromCurrencyStatus.currency, + onReduceClick = { reduceTo, _ -> + actions.onReduceAmount(amountToRequest.copy(value = reduceTo)) + }, + ) } private fun MutableList.maybeAddNeedReserveToCreateAccountWarning(