Updated on 2026-08-14

This commit is contained in:
Tangem 2024-09-26 13:17:49 +03:00
commit bc1d43cda9
2 changed files with 6 additions and 0 deletions

View file

@ -113,12 +113,14 @@ internal object TokensDomainModule {
quotesRepository: QuotesRepository,
networksRepository: NetworksRepository,
stakingRepository: StakingRepository,
dispatchers: CoroutineDispatcherProvider,
): GetAllWalletsCryptoCurrencyStatusesUseCase {
return GetAllWalletsCryptoCurrencyStatusesUseCase(
currenciesRepository = currenciesRepository,
quotesRepository = quotesRepository,
networksRepository = networksRepository,
stakingRepository = stakingRepository,
dispatchers = dispatchers,
)
}

View file

@ -11,6 +11,7 @@ import com.tangem.domain.tokens.repository.CurrenciesRepository
import com.tangem.domain.tokens.repository.NetworksRepository
import com.tangem.domain.tokens.repository.QuotesRepository
import com.tangem.domain.wallets.models.UserWallet
import com.tangem.utils.coroutines.CoroutineDispatcherProvider
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.flow.*
@ -21,6 +22,7 @@ import kotlinx.coroutines.flow.*
* @property quotesRepository quotes repository
* @property networksRepository networks repository
* @property stakingRepository staking repository
* @property dispatchers dispatchers
*
[REDACTED_AUTHOR]
*/
@ -29,6 +31,7 @@ class GetAllWalletsCryptoCurrencyStatusesUseCase(
private val quotesRepository: QuotesRepository,
private val networksRepository: NetworksRepository,
private val stakingRepository: StakingRepository,
private val dispatchers: CoroutineDispatcherProvider,
) {
/**
@ -62,5 +65,6 @@ class GetAllWalletsCryptoCurrencyStatusesUseCase(
combine(walletStatusFlows) { it.toMap() }
}
.flowOn(dispatchers.io)
}
}