Assessment reports>Metavest>Threat Model>consentToMetavestAmendment

Function: consentToMetavestAmendment(address _grant, byte[4] _msgSig, bool _inFavor)

This function is used to consent to the amendment of a function.

Inputs

  • _grant

    • Control: Arbitrary.

    • Constraints: Should be a valid allocation address.

    • Impact: Address of the grant to consent to the amendment.

  • _msgSig

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: Signature of the function to consent to.

  • _inFavor

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: Boolean value for inFavor of the amendment.

Branches and code coverage

Intended branches

  • Update the inFavor of functionToGranteeToAmendmentPending.

Negative behavior

  • Revert if _msgSig is not pending.

  • Revert if the caller is not the grantee of the allocation.

Zellic © 2024Back to top ↑