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(