diff --git a/keepers/validator-keeper/src/operations/steward.rs b/keepers/validator-keeper/src/operations/steward.rs index 2f2324f..fa6965d 100644 --- a/keepers/validator-keeper/src/operations/steward.rs +++ b/keepers/validator-keeper/src/operations/steward.rs @@ -37,6 +37,9 @@ pub enum StewardErrorCodes { InvalidState = 0xA2, // Don't Raise Flag IndexesDontMatch = 0xA3, // Raise Flag VoteHistoryNotRecentEnough = 0xA4, // Don't Raise Flag + AutoRemoveStakeAccountClosed = 0xA5, // Don't Raise Flag + StakePoolNotUpdated = 0xA6, // Don't Raise Flag + ValidatorsNotRemovedYet = 0xA7, // Don't Raise Flag } pub async fn fire( @@ -81,6 +84,21 @@ pub async fn fire( keeper_flags.set_flag(KeeperFlag::RerunVote); StewardErrorCodes::VoteHistoryNotRecentEnough as i64 } + s if s.contains("AutoRemoveValidatorFromPool") + && s.contains("ConstraintOwner") => + { + StewardErrorCodes::AutoRemoveStakeAccountClosed as i64 + } + s if s.contains("UpdateStakePoolBalance") + && s.contains("0x10") => + { + StewardErrorCodes::StakePoolNotUpdated as i64 + } + s if s.contains("AutoAddValidator") + && s.contains("ValidatorsNeedToBeRemoved") => + { + StewardErrorCodes::ValidatorsNotRemovedYet as i64 + } _ => { StewardErrorCodes::UnknownRpcSimulateTransactionResult as i64