Updated on 2026-08-14

This commit is contained in:
Tangem 2024-09-05 16:28:36 +03:00
parent 1e85dbe6f7
commit 1006477fd7
5 changed files with 46 additions and 22 deletions

View file

@ -481,6 +481,8 @@ internal class DefaultCurrenciesRepository(
@OptIn(ExperimentalCoroutinesApi::class)
override fun getAllWalletsCryptoCurrencies(currencyRawId: String): Flow<Map<UserWallet, List<CryptoCurrency>>> {
return userWalletsStore.userWallets.flatMapLatest { userWallets ->
userWallets.forEach { fetchTokensIfCacheExpired(userWallet = it, refresh = false) }
val userWalletsWithCurrencies = userWallets
.filterNot(UserWallet::isLocked)
.map { userWallet ->