Docs
Vesting schedules
Cliffs, steps and straight lines, with the exact math.
A vesting schedule releases tokens over time instead of all at once. It is common for team, advisor and investor tokens.
The words
- Start: when the schedule begins counting.
- Cliff: nothing unlocks before this date. At the cliff, everything that would have unlocked since the start unlocks at once.
- End: everything is unlocked by this date.
- Steps: the number of equal portions (tranches). 0 steps means a straight line: tokens unlock every second.
Example: monthly steps
1,200,000 tokens, start 1 January, a 3-month cliff, 12 steps over 360 days. Nothing unlocks until 1 April. On 1 April, 3 steps unlock at once (300,000). Then 100,000 more every 30 days until all 1,200,000 are unlocked.
Example: a straight line
1,000,000 tokens over 100 days with no cliff and 0 steps. After 50 days, 500,000 are unlocked; after 75 days, 750,000. The recipient can claim at any moment.
The exact formula
The vault and this site use the same math (the site's copy is tested against the contract). Every division rounds down, so the recipient is never owed more than was locked, and at the end everything is unlocked.
before the cliff: unlocked = 0
after the end: unlocked = total
linear (steps = 0): unlocked = total × (now − start) / (end − start)
in steps (n): done = floor((now − start) × n / (end − start))
unlocked = total × done / nLimits
- At least 7 days: a schedule ends at least 7 days from now and at least 7 days after its start.
- At most 1,000 steps.
- At most 50 years from start to end, and the end at most 50 years from now.
- At most one step per second of the schedule, and no more steps than the amount in the token's smallest units.