Updated on 2026-08-14

This commit is contained in:
Tangem 2025-08-27 16:17:25 +05:00
parent 101012938e
commit 54094ffa2f

View file

@ -105,10 +105,10 @@ internal class SwapAmountModel @Inject constructor(
private var secondaryMaximumAmountBoundary: EnterAmountBoundary? = null
private var secondaryMinimumAmountBoundary: EnterAmountBoundary? = null
var userCountry: UserCountry = UserCountry.Other(Locale.getDefault().country)
private var userCountry: UserCountry = UserCountry.Other(Locale.getDefault().country)
val bottomSheetNavigation: SlotNavigation<SwapChooseProviderConfig> = SlotNavigation()
var showBestRateAnimation: Boolean = false
private var showBestRateAnimation: Boolean = false
val uiState: StateFlow<SwapAmountUM>
field = MutableStateFlow(params.amountUM)
@ -134,7 +134,10 @@ internal class SwapAmountModel @Inject constructor(
}
fun onStart() {
startLoadingQuotesTask(isSilentReload = false)
quoteTaskScheduler.scheduleTask(
scope = modelScope,
task = loadQuotesTask(),
)
}
fun onStop() {