Updated on 2026-08-14

This commit is contained in:
Tangem 2025-03-04 11:37:27 +03:00
commit 6377092156
2 changed files with 4 additions and 14 deletions

View file

@ -935,7 +935,7 @@ internal class StakingModel @Inject constructor(
when {
isInitState() -> {
updateInitialData()
balanceUpdater.initialUpdate()
balanceUpdater.partialUpdate()
}
isAssentState() -> {
getFee()

View file

@ -57,24 +57,14 @@ internal class StakingBalanceUpdater @AssistedInject constructor(
}
suspend fun partialUpdate() {
coroutineScope {
listOf(
async {
updateNetworkStatuses(delay = 0)
},
async {
updateProcessingActions()
},
).awaitAll()
}
}
suspend fun initialUpdate() {
coroutineScope {
listOf(
async {
updateStakeBalance()
},
async {
updateNetworkStatuses(delay = 0)
},
async {
updateProcessingActions()
},