diff --git a/features/swap-v2/impl/src/main/java/com/tangem/features/swap/v2/impl/amount/model/SwapAmountModel.kt b/features/swap-v2/impl/src/main/java/com/tangem/features/swap/v2/impl/amount/model/SwapAmountModel.kt index ecc249a62b..dcf53ad59d 100644 --- a/features/swap-v2/impl/src/main/java/com/tangem/features/swap/v2/impl/amount/model/SwapAmountModel.kt +++ b/features/swap-v2/impl/src/main/java/com/tangem/features/swap/v2/impl/amount/model/SwapAmountModel.kt @@ -149,9 +149,10 @@ internal class SwapAmountModel @Inject constructor( } fun onStart() { + val isDelayFirst = params !is SwapAmountComponentParams.AmountBlockParams quoteTaskScheduler.scheduleTask( scope = modelScope, - task = loadQuotesTask(), + task = loadQuotesTask(isDelayFirst = isDelayFirst), ) subscribeOnAutoupdateEnabling() } @@ -824,10 +825,10 @@ internal class SwapAmountModel @Inject constructor( ) } - private fun loadQuotesTask(): PeriodicTask { + private fun loadQuotesTask(isDelayFirst: Boolean = true): PeriodicTask { return PeriodicTask( delay = QUOTES_UPDATE_DELAY, - isDelayFirst = true, + isDelayFirst = isDelayFirst, task = { runCatching { loadQuotes(isSilentReload = true) } },