Assessment reports>Spectral Modelers>Threat Model>kickModeler

Function: kickModeler(address modeler)

This allows a validator to kick a modeler.

Inputs

  • modeler

    • Control: Fully controlled by the caller.

    • Constraints: Checked that the modeler is registered.

    • Impact: The modeler to be kicked.

Branches and code coverage

Intended branches

  • Assure that the modeler is registered. Currently not performed.

  • Currently assume that the modeler's stake is transferred back to them. Currently not performed.

  • Assure that the modeler has not already opted out. Currently not performed.

  • Assure that the rest of the Modeler's data is reset. Currently not performed.

Negative behavior

  • Should not be callable by anyone other than a validator.

  • Should not allow calling this while the contract is paused.

Zellic © 2024Back to top ↑