Updated on 2026-08-14
This commit is contained in:
parent
b2f3753b17
commit
4594602447
3 changed files with 33 additions and 33 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue