Updated on 2026-08-14
This commit is contained in:
parent
155b6516d9
commit
fc5fbfca7f
1 changed files with 10 additions and 8 deletions
|
|
@ -203,17 +203,19 @@ internal class StakingModel @Inject constructor(
|
|||
private val balancesToShow: List<StakingBalanceEntry>
|
||||
get() {
|
||||
val stakingBalance = cryptoCurrencyStatus.value.stakingBalance
|
||||
return when (stakingBalance) {
|
||||
is StakingBalance.Data.StakeKit -> {
|
||||
val invalidatedItems = invalidatePendingTransactionsUseCase(
|
||||
balanceItems = stakingBalance.balance.items,
|
||||
return when (integration) {
|
||||
is StakeKitIntegration -> {
|
||||
val balanceItems = (stakingBalance as? StakingBalance.Data.StakeKit)
|
||||
?.balance?.items.orEmpty()
|
||||
invalidatePendingTransactionsUseCase(
|
||||
balanceItems = balanceItems,
|
||||
stakingActions = stakingActions,
|
||||
token = integration.token,
|
||||
).getOrElse { emptyList() }
|
||||
invalidatedItems.toStakingBalanceEntries()
|
||||
).getOrElse { emptyList() }.toStakingBalanceEntries()
|
||||
}
|
||||
is P2PEthPoolIntegration -> {
|
||||
(stakingBalance as? StakingBalance.Data.P2PEthPool)?.entries.orEmpty()
|
||||
}
|
||||
is StakingBalance.Data.P2PEthPool -> stakingBalance.entries
|
||||
else -> emptyList()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue