Interfaces
IVestingToken.sol
IVestingToken
Interface that describes the Milestone struct and initialize function so the VestingTokenFactory
knows how to
initialize the VestingToken
.
Functions
initialize
Initializes the contract by setting up the ERC20 variables, the underlyingToken
, and the
milestonesArray
information.
Parameters
Name | Type | Description |
---|---|---|
name | string | The token collection name. |
symbol | string | The token collection symbol. |
underlyingTokenAddress | address | The ERC20 token that will be held by this contract. |
milestonesArray | Milestone[] | Array of all Milestones for this Contract’s lifetime. |
Structs
Milestone
timestamp
represents a moment in time when this Milestone is considered expired.
ramp
defines the behaviour of the release of tokens in period between the previous Milestone and the
current one.
percentage
is the percentage of tokens that should be released once this Milestone has expired.
Enums
Ramp
*Ramps describes how the periods between release tokens.
- Cliff releases nothing until the end of the period.
- Linear releases tokens every second according to a linear slope.