From 56905685c91a9e94ef0c2919c8dd9f2ac9b90955 Mon Sep 17 00:00:00 2001 From: Gurjot Date: Tue, 14 Jan 2025 17:44:33 +0530 Subject: [PATCH] add active state in qualified for withdrawable --- internal/types/state.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/types/state.go b/internal/types/state.go index 70b8d21..2909910 100644 --- a/internal/types/state.go +++ b/internal/types/state.go @@ -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