Sub topic 7
Vesting: Cliffs, Linear Release, and TGE Unlocks
Prerequisites: you should understand wallets and transactions at a high level, read short Python functions, and calculate percentages. This chapter assumes that a token allocation already exists and focuses on when that allocation becomes transferable.
Vesting is a schedule that controls when allocated tokens become available. It is commonly used for team members, investors, advisors, and grants. Vesting reduces the chance that a large allocation enters the market immediately after launch.
The three parts of a vesting schedule
A schedule often includes these terms:
- TGE, or token generation event, is the moment a token is created or begins trading. A TGE unlock is the percentage released immediately at that time.
- A cliff is a waiting period during which no additional tokens vest. For example, a 12-month cliff delays the first scheduled release until month 12.
- Linear vesting releases the remaining tokens at a steady rate over a stated period. A 36-month linear period releases one thirty-sixth of the remaining amount each month.
The terms must be interpreted together. “Four-year vesting” might mean four years total, including a one-year cliff, or a one-year cliff followed by four years of linear vesting. These produce different release dates and amounts.
This chapter uses the convention that the linear period begins when the cliff ends. It also treats the cliff date as the point before the first linear increment. Real contracts may use a different convention, so check the contract or schedule documentation.
Calculating unlocked tokens
Let:
Tbe the total allocation.pbe the TGE percentage.Cbe the cliff length.Lbe the linear vesting length.tbe elapsed time since the vesting start.
The TGE amount is:
TGE amount = T × p
If t is less than the cliff, the unlocked amount is only the TGE amount. After the cliff, the additional amount is:
remaining amount × (t - C) / L
The schedule is complete when t reaches C + L. Smart contracts often use integer arithmetic, so fractional token amounts are rounded according to the token’s smallest unit.
| Term | Example | Effect |
|---|---|---|
| Total allocation | 1,200 tokens | Maximum amount assigned |
| TGE unlock | 10% | 120 tokens available immediately |
| Cliff | 12 months | No additional vesting before month 12 |
| Linear period | 36 months | Remaining 1,080 tokens release over 36 months |
At month 24, the elapsed time after the cliff is 12 months. The unlocked amount is 120 plus 1,080 × 12 / 36, or 480 tokens. At month 48, the entire 1,200-token allocation is unlocked.
A runnable vesting model
This function uses integer token amounts and returns the unlocked balance for a given month.
def unlocked(total, tge_percent, cliff, linear, month):
"""Return tokens unlocked at `month` since the vesting start."""
tge = total * tge_percent // 100
if month < 0:
return 0
if month < cliff:
return tge
if month >= cliff + linear:
return total
vested_after_cliff = (total - tge) * (month - cliff) // linear
return tge + vested_after_cliff
total = 1_200
for month in (0, 6, 12, 24, 48):
print(month, unlocked(total, 10, 12, 36, month))The important boundary checks are the start, the cliff, and the final vesting date. Test those boundaries because an off-by-one error can change the claimed unlock date.
Common errors
- Treating the cliff as an additional token allocation instead of a waiting period.
- Applying the linear percentage to the full allocation after already releasing a TGE amount.
- Confusing the vesting start date with the token listing date.
- Ignoring time units. A contract may measure seconds or block timestamps, while a spreadsheet uses months.
- Assuming “unlocked” means “sold.” Tokens can be unlocked but still held by the recipient.
- Ignoring transfers. Some contracts allow an allocation to move while it is still vesting; others restrict transfers.
Exercise
An investor receives 500,000 tokens, has a 20% TGE unlock, a six-month cliff, and an 18-month linear period afterward. How many tokens are unlocked at month 15?
Show answer
The TGE amount is 100,000. Nine months have passed after the cliff, so the additional amount is 400,000 × 9 / 18 = 200,000. The total unlocked amount is 300,000 tokens.