Function: addMilestone(Milestone _milestone)
This function is used to add a milestone to the allocation contract.
Inputs
_milestone
Control: Arbitrary.
Constraints: Should be less than the length of the
milestones
array.Impact: Milestone struct with
milestoneAward
,unlockOnCompletion
,complete
, andconditionContracts
fields.
Branches and code coverage
Intended branches
Add the provided milestone to the
milestones
array.
Negative behavior
Revert if the caller is not the controller.
Revert if the allocation is already terminated.