Assessment reports>Metavest>Threat Model>removeFunctionCondition

Function: removeFunctionCondition(address _condition, byte[4] _functionSig)

This function is used to remove a condition contract from a function.

Inputs

  • _condition

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: Address of the condition contract to be removed from the functionToConditions mapping for the specified function signature.

  • _functionSig

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: Signature of the function to remove the condition from the functionToConditions mapping.

Branches and code coverage

Intended branches

  • Remove the condition from the functionToConditions mapping for the specified function signature.

Negative behavior

  • Revert if the caller is not the DAO.

Zellic © 2024Back to top ↑