Assessment reports>Metavest>Threat Model>removeMilestone

Function: removeMilestone(uint256 _milestoneIndex)

This function is used to remove a milestone from the allocation contract.

Inputs

  • _milestoneIndex

    • Control: Arbitrary.

    • Constraints: Should be less than the length of the milestones array.

    • Impact: Index of the milestone to remove.

Branches and code coverage

Intended branches

  • Delete the milestone at the provided index from the milestones array.

Negative behavior

  • Revert if the caller is not the controller.

  • Revert if the allocation is already terminated.

  • Revert if the milestone index is greater than the length of the milestones array.

Zellic © 2024Back to top ↑