Updated on 2026-08-14
This commit is contained in:
parent
822b5f9ae4
commit
74e0e1280b
1 changed files with 8 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue