Assessment reports>Spectral Modelers>Threat Model>emergencyOptOutValidator

Function: emergencyOptOutValidator(address _validator)

This function allows an admin to emergency opt out for a validator.

Inputs

  • _validator

    • Control: Fully controlled by the admin caller.

    • Constraints: Must be a registered validator's address.

    • Impact: The specified validator as opted out.

Branches and code coverage

Intended branches

  • Check if _validator is a registered validator.

  • Remove _validator from validatorAddresses.

  • Update optOutTime for _validator.

Negative behavior

  • Caller is a service admin.

  • _validator is not a registered validator.

  • Address removal in removeValidatorRewardList function if _validator is not found in validatorAddresses.

Zellic © 2024Back to top ↑