Updated on 2026-08-14

This commit is contained in:
Tangem 2024-11-18 12:30:17 +05:00
parent 822b5f9ae4
commit 74e0e1280b

View file

@ -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<NotificationUM>.maybeAddNeedReserveToCreateAccountWarning(