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
_grantee
Control: Arbitrary.
Constraints: None.
Impact: Address of the grantee.
_paymentToken
Control: Arbitrary.
Constraints: None.
Impact: Address of payment token.
_repurchasePrice
Control: Arbitrary.
Constraints: None.
Impact: Value of repurchase price.
_shortStopDuration
Control: Arbitrary.
Constraints: None.
Impact: Value of short stop duration.
_allocation
Control: Arbitrary.
Constraints: None.
Impact: Struct of the allocation including
Allocation
fields:tokenStreamTotal
,vestingCliffCredit
,unlockingCliffCredit
,vestingRate
,vestingStartTime
,unlockRate
,unlockStartTime
, andtokenContract
.
_milestones
Control: Arbitrary.
Constraints: None.
Impact: Array of
Milestone
. Struct of the milestone includingmilestoneAward
,unlockOnCompletion
,complete
, and an array ofconditionContracts
addresses.
Branches and code coverage
Intended branches
Create a new restricted-token award through
restrictedTokenAwardFactory
.