Updated on 2026-08-14

This commit is contained in:
Tangem 2024-10-31 17:59:34 +05:00
parent b2f3753b17
commit 4594602447
3 changed files with 33 additions and 33 deletions

View file

@ -318,9 +318,9 @@ internal class TokenDetailsLoadedBalanceConverter(
}
private fun getRewardText(status: CryptoCurrencyStatus, stakingRewardAmount: BigDecimal?): TextReference {
val networkId = status.currency.network.id.value
val blockchainId = status.currency.network.id.value
val rewardBlockType = when {
isSolana(networkId) || isBSC(networkId) -> RewardBlockType.RewardUnavailable
isSolana(blockchainId) || isBSC(blockchainId) -> RewardBlockType.RewardUnavailable
stakingRewardAmount.isNullOrZero() -> RewardBlockType.NoRewards
else -> RewardBlockType.Rewards
}