Updated on 2026-08-14

This commit is contained in:
Tangem 2024-01-24 17:34:33 +01:00
parent 4cb96d8a2b
commit 560b78cb43

View file

@ -55,7 +55,7 @@ internal class TokenDetailsSwapTransactionsStateConverter(
val toAmount = transaction.toCryptoAmount
val fromAmount = transaction.fromCryptoAmount
val toFiatAmount = quotes.firstOrNull {
it.rawCurrencyId == swapCurrency.fromCryptoCurrency.id.rawCurrencyId
it.rawCurrencyId == swapCurrency.toCryptoCurrency.id.rawCurrencyId
}?.fiatRate?.multiply(toAmount)
val fromFiatAmount = quotes.firstOrNull {
it.rawCurrencyId == swapCurrency.fromCryptoCurrency.id.rawCurrencyId