Updated on 2026-08-14

This commit is contained in:
Tangem 2023-11-21 18:49:21 +03:00
parent 3c5c53ce92
commit 537543636b
19 changed files with 431 additions and 145 deletions

View file

@ -67,6 +67,14 @@ internal class DefaultQuotesRepository(
}
}
override suspend fun getQuoteSync(currencyId: CryptoCurrency.ID): Quote {
return withContext(dispatchers.io) {
val quote = quotesStore.getSync(setOf(currencyId)).firstOrNull()
requireNotNull(quote) { "Unable to get quote for $currencyId" }
quotesConverter.convert(quote)
}
}
private suspend fun fetchExpiredQuotes(
currenciesIds: Set<CryptoCurrency.ID>,
appCurrencyId: String,