Updated on 2026-08-14

This commit is contained in:
Tangem 2024-09-05 15:57:31 +05:00
parent afdb81adac
commit 1bed77ffb1
4 changed files with 9 additions and 4 deletions

View file

@ -94,7 +94,7 @@ internal class TokenDetailsLoadedBalanceConverter(
currentState: TokenDetailsBalanceBlockState,
status: CryptoCurrencyStatus,
): TokenDetailsBalanceBlockState {
val stakingCryptoAmount = (status.value.yieldBalance as? YieldBalance.Data)?.getTotalStakingBalance()
val stakingCryptoAmount = (status.value.yieldBalance as? YieldBalance.Data)?.getTotalWithRewardsStakingBalance()
val stakingFiatAmount = stakingCryptoAmount?.let { status.value.fiatRate?.multiply(it) }
val isBalanceSelectorEnabled = stakingFeatureToggles.isStakingEnabled && !stakingCryptoAmount.isNullOrZero()
return when (status.value) {