Updated on 2026-08-14

This commit is contained in:
Tangem 2025-07-18 16:11:18 +05:00
parent 9fa341d0df
commit ea657bbba7

View file

@ -81,6 +81,10 @@ internal class SendAmountModel @Inject constructor(
configAmountNavigation()
initAppCurrency()
subscribeOnCryptoCurrencyStatusFlow()
subscribeOnAmountReduceByTriggerUpdates()
subscribeOnAmountReduceToTriggerUpdates()
subscribeOnAmountIgnoreReduceTriggerUpdates()
subscribeOnAmountUpdateQRTriggerUpdates()
}
private fun initAppCurrency() {
@ -95,12 +99,6 @@ internal class SendAmountModel @Inject constructor(
.onEach { newCryptoCurrencyStatus ->
cryptoCurrencyStatus = newCryptoCurrencyStatus
maxAmountBoundary = MaxEnterAmountConverter().convert(cryptoCurrencyStatus)
if (uiState.value is AmountState.Empty) {
subscribeOnAmountReduceByTriggerUpdates()
subscribeOnAmountReduceToTriggerUpdates()
subscribeOnAmountIgnoreReduceTriggerUpdates()
subscribeOnAmountUpdateQRTriggerUpdates()
}
initMinBoundary()
}
.launchIn(modelScope)