Updated on 2026-08-14
This commit is contained in:
parent
7e1fcc18d1
commit
ee4c5a872c
1 changed files with 2 additions and 1 deletions
|
|
@ -284,6 +284,7 @@ class TokenItemStateConverter(
|
|||
|
||||
val stakingBalance = currencyStatus.value.stakingBalance as? StakingBalance.Data
|
||||
val stakeKitBalance = stakingBalance as? StakingBalance.Data.StakeKit
|
||||
val p2pEthPoolBalance = stakingBalance as? StakingBalance.Data.P2PEthPool
|
||||
|
||||
val rateInfo = when (val stakingOptions = stakingAvailability.option) {
|
||||
is StakingOption.P2PEthPool -> {
|
||||
|
|
@ -316,7 +317,7 @@ class TokenItemStateConverter(
|
|||
|
||||
return StakingLocalInfo(
|
||||
rate = rateInfo?.rate,
|
||||
isActive = stakeKitBalance != null, // todo add p2p check
|
||||
isActive = stakeKitBalance != null || p2pEthPoolBalance != null,
|
||||
rewardType = rateInfo?.type,
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue