Updated on 2026-08-14
This commit is contained in:
parent
de3bdb3cb0
commit
56164d0b8b
36 changed files with 255 additions and 124 deletions
|
|
@ -41,6 +41,7 @@ internal class SetConfirmationStateInitTransformer(
|
|||
private val isImplicitExit: Boolean
|
||||
get() = pendingAction == null && pendingActions?.isEmpty() == true || isTronStakedBalance
|
||||
|
||||
@Suppress("CyclomaticComplexMethod")
|
||||
override fun transform(prevState: StakingUiState): StakingUiState {
|
||||
val actionType = when {
|
||||
isEnter -> StakingActionCommonType.Enter(
|
||||
|
|
|
|||
|
|
@ -54,6 +54,7 @@ internal class AddStakingNotificationsTransformer(
|
|||
isSubtractAvailable = isSubtractAvailable,
|
||||
)
|
||||
|
||||
@Suppress("LongMethod")
|
||||
override fun transform(prevState: StakingUiState): StakingUiState {
|
||||
val cryptoCurrencyStatus = cryptoCurrencyStatusProvider()
|
||||
val balance = cryptoCurrencyStatus.value.amount.orZero()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue