Skip to main content

IVestingToken

Git Source 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

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.