Assessment reports>AccountRecoveryModule>Threat Model>setThreshold

Function: setThreshold(uint8 newThreshold)

This function can be called to set the threshold for the smart account.

Inputs

  • newThreshold

    • Control: Arbitrary.

    • Constraints: Must be greater than zero and at most the number of guardians.

    • Impact: New threshold to set.

Branches and code coverage

Intended branches

  • Sets the new threshold.

Negative behavior

  • Reverts if the threshold is zero.

  • Reverts if the threshold is too high.

Zellic © 2024Back to top ↑