Updated on 2026-08-14

This commit is contained in:
Tangem 2025-10-28 14:21:45 +05:00
parent 598c6b99b0
commit 75be53dd29

View file

@ -42,10 +42,13 @@ internal class YieldSupplyStartEarningFeeContentTransformer(
val tokenFiatFee = feeFiat // same fiat amount
val tokenFiatFeeValueText = tokenFiatFee.format { fiat(appCurrency.code, appCurrency.symbol) }
val maxFeeCryptoValueText = maxNetworkFee.format { crypto(cryptoCurrency) }
val maxFiatFee = tokenFiatRate?.let { rate ->
val maxFiatFee = feeFiatRate?.let { rate ->
maxNetworkFee.multiply(rate)
}
val maxFeeCryptoValueText = tokenFiatRate?.let { rate ->
maxFiatFee?.divide(rate, cryptoCurrency.decimals, RoundingMode.HALF_UP)
}.format { crypto(cryptoCurrency) }
val maxFiatFeeValueText = maxFiatFee.format { fiat(appCurrency.code, appCurrency.symbol) }
val minAmountCryptoText = minAmount.format { crypto(cryptoCurrency) }