Assessment reports>AccountRecoveryModule>Threat Model>changeGuardianParams

Function: changeGuardianParams(byte[32] guardian, uint48 validUntil, uint48 validAfter)

This function can be called to modify the time frames for a guardian.

Inputs

  • guardian

    • Control: Arbitrary.

    • Constraints: Must be a configured guardian.

    • Impact: Guardian to modify.

  • validUntil

    • Control: Arbitrary.

    • Constraints: Must not be in the past and before validAfter.

    • Impact: Time until the guardian will be active.

  • validAfter

    • Control: Arbitrary.

    • Constraints: Must be in the future (respecting the security delay).

    • Impact: Time from which the guardian will be active.

Branches and code coverage

Intended branches

  • Changes the time frame associated with the given guardian.

Negative behavior

  • Reverts if the time frame is invalid.

Zellic © 2024Back to top ↑