Function: createAndInitializeRestrictedTokenAward(address _grantee, address _paymentToken, uint256 _repurchasePrice, uint256 _shortStopDuration, VestingAllocation.Allocation _allocation, VestingAllocation.Milestone[] _milestones)
This function is used to create and initialize a new RestrictedTokenAllocation contract.
Inputs
_granteeControl: Arbitrary.
Constraints: None.
Impact: Address of the grantee.
_paymentTokenControl: Arbitrary.
Constraints: None.
Impact: Address of payment token.
_repurchasePriceControl: Arbitrary.
Constraints: None.
Impact: Value of repurchase 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 restricted-token award through
restrictedTokenAwardFactory.