Updated on 2026-08-14

This commit is contained in:
Tangem 2022-03-25 18:55:51 +03:00
parent 57d2348c9a
commit d10ca65bba

View file

@ -103,9 +103,11 @@ class TapWalletManager {
val toUpdate = currencies.filter { !fiatRatesThrottler.isStillThrottled(it) }
toUpdate.forEach {
fiatRatesThrottler.updateThrottlingTo(it)
val result = coinMarketCapService.getRate(it.currencySymbol, fiatCurrency)
fiatRatesThrottler.setValue(it, result)
if (result is Result.Success) {
fiatRatesThrottler.updateThrottlingTo(it)
fiatRatesThrottler.setValue(it, result)
}
handleFiatRatesResult(listOf(it to result))
}
}