Updated on 2026-08-14

This commit is contained in:
Tangem 2025-02-10 16:26:29 +05:00
parent c689b1e133
commit a058fba396
5 changed files with 28 additions and 11 deletions

View file

@ -211,8 +211,10 @@ internal class SendNotificationFactory(
)
}
addTransactionLimitErrorNotification(
utxoLimit = currencyCheck.utxoAmountLimit,
cryptoCurrency = currency,
currencyCheck = currencyCheck,
sendingAmount = sendingAmount,
cryptoCurrencyStatus = cryptoCurrencyStatus,
feeCurrencyStatus = feeCryptoCurrencyStatusProvider(),
feeValue = feeValue,
onReduceClick = clickIntents::onAmountReduceToClick,
)

View file

@ -64,7 +64,6 @@ internal class FeeStateFactory(
} else {
FeeSelectorState.Loading
},
notifications = persistentListOf(),
isPrimaryButtonEnabled = false,
),
)

View file

@ -168,8 +168,10 @@ internal class AddStakingNotificationsTransformer(
)
}
addTransactionLimitErrorNotification(
utxoLimit = currencyCheck.utxoAmountLimit,
cryptoCurrency = cryptoCurrency,
currencyCheck = currencyCheck,
sendingAmount = sendingAmount,
cryptoCurrencyStatus = cryptoCurrencyStatus,
feeCurrencyStatus = feeCryptoCurrencyStatus,
feeValue = feeValue,
onReduceClick = prevState.clickIntents::onAmountReduceToClick,
)

View file

@ -199,8 +199,10 @@ internal class SwapNotificationsFactory(
onReduceByAmount = actions.onReduceByAmount,
)
addTransactionLimitErrorNotification(
utxoLimit = quoteModel.currencyCheck?.utxoAmountLimit,
cryptoCurrency = fromCurrencyStatus.currency,
currencyCheck = quoteModel.currencyCheck,
sendingAmount = amountToRequest.value,
cryptoCurrencyStatus = fromCurrencyStatus,
feeCurrencyStatus = feeCryptoCurrencyStatus,
feeValue = fee?.feeValue.orZero(),
onReduceClick = { reduceTo, _ ->
actions.onReduceToAmount(amountToRequest.copy(value = reduceTo))