Updated on 2026-08-14

This commit is contained in:
Tangem 2025-03-13 11:34:30 +03:00
parent de3bdb3cb0
commit 56164d0b8b
36 changed files with 255 additions and 124 deletions

View file

@ -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(

View file

@ -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()