Updated on 2026-08-14
This commit is contained in:
commit
6377092156
2 changed files with 4 additions and 14 deletions
|
|
@ -935,7 +935,7 @@ internal class StakingModel @Inject constructor(
|
|||
when {
|
||||
isInitState() -> {
|
||||
updateInitialData()
|
||||
balanceUpdater.initialUpdate()
|
||||
balanceUpdater.partialUpdate()
|
||||
}
|
||||
isAssentState() -> {
|
||||
getFee()
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue