Skip to content

Commit

Permalink
add active state in qualified for withdrawable
Browse files Browse the repository at this point in the history
  • Loading branch information
gusin13 committed Jan 14, 2025
1 parent 4e40a91 commit 5690568
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/types/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ func QualifiedStatesForWithdrawn() []DelegationState {
// QualifiedStatesForWithdrawable returns the qualified current states for Withdrawable event
// The "StateWithdrawable" is included b/c sub state can be changed to if
// user did not withdraw ontime. e.g TIMELOCK change to TIMELOCK_SLASHING
// "StateActive" is included b/c the slashing tx can be detected before babylon events at this time
// the state is still active
func QualifiedStatesForWithdrawable() []DelegationState {
return []DelegationState{StateUnbonding, StateSlashed, StateWithdrawable}
return []DelegationState{StateActive, StateUnbonding, StateSlashed, StateWithdrawable}
}

type DelegationSubState string
Expand Down

0 comments on commit 5690568

Please sign in to comment.