Function: createAndInitializeTokenOptionAllocation(address _grantee, address _paymentToken, uint256 _exercisePrice, uint256 _shortStopDuration, VestingAllocation.Allocation _allocation, VestingAllocation.Milestone[] _milestones)
This function is used to create and initialize a new TokenOptionAllocation contract.
Inputs
_granteeControl: Arbitrary.
Constraints: None.
Impact: Address of the grantee.
_paymentTokenControl: Arbitrary.
Constraints: None.
Impact: Address of payment token.
_exercisePriceControl: Arbitrary.
Constraints: None.
Impact: Value of exercise price.
_shortStopDurationControl: Arbitrary.
Constraints: None.
Impact: Value of short stop duration.
_allocationControl: Arbitrary.
Constraints: None.
Impact: Struct of the allocation including
Allocationfields:tokenStreamTotal,vestingCliffCredit,unlockingCliffCredit,vestingRate,vestingStartTime,unlockRate,unlockStartTime, andtokenContract.
_milestonesControl: Arbitrary.
Constraints: None.
Impact: Array of
Milestone. Struct of the milestone includingmilestoneAward,unlockOnCompletion,complete, and an array ofconditionContractsaddresses.
Branches and code coverage
Intended branches
Create a new token-option allocation through
tokenOptionFactory.