Sub topic 7
Vesting: cliffs, linear release, and TGE unlocks
This chapter covers how vesting schedules decide when allocated tokens become available. It assumes you can read short Python functions, know what a token and a wallet are, and are comfortable with percentages. You should also know the supply terms from earlier chapters (total, maximum, and circulating supply) and the idea of an allocation table.
What vesting does
Vesting is a rule that releases allocated tokens to their owner over time instead of all at once. Projects use it for team members, investors, advisors, and sometimes ecosystem funds. The goal is to keep insiders committed. Someone who can sell everything on day one has little reason to keep building.
A vesting schedule combines up to three parts:
- TGE unlock: the share released at the token generation event, the moment the token first exists and can trade.
- Cliff: a waiting period during which nothing more is released.
- Linear release: a steady drip of tokens, usually daily, monthly, or per second.
A schedule is usually written as "10% at TGE, 12-month cliff, 36-month linear." The amounts and timing then come from the terms in the allocation table.
Four words that get mixed up
Different sources use these words loosely, and many modelling errors start there.
| Term | Meaning | Counts toward circulating supply? |
|---|---|---|
| Allocated | Reserved for a holder in the allocation table | No |
| Vested | Earned under the schedule | Not by itself |
| Unlocked | Free to move or sell | Usually yes |
| Claimed | Actually withdrawn by the holder | Depends on the data provider |
On-chain contracts often let tokens sit vested but unclaimed. Data dashboards may count unlocked tokens as circulating even when no one has claimed them. Check which definition a source uses before comparing numbers.
The cliff
A cliff is a period at the start of a schedule during which nothing vests. When the cliff ends, the schedule begins releasing. Cliffs of 6 to 12 months are common for teams and investors.
There are two common conventions for what happens at the cliff date. Projects rarely say which one they mean, so you must read the contract or the docs.
- Catch-up cliff. The linear clock starts at the schedule start. At the cliff date, everything accrued since the start is released in one step. This is the standard in employee equity.
- Post-cliff linear. The linear clock starts when the cliff ends. Nothing is released at the cliff date itself, and release begins gradually afterward.
The catch-up version creates a visible jump on the cliff date. The post-cliff version has no jump but takes longer to release the same amount, if the total duration is the same.
A cliff-plus-linear function
This function implements the catch-up convention with integer division, as on-chain contracts do. All times use the same unit.
def vested(total, start, cliff, duration, now):
"""Amount released at time `now` (all times in the same unit, e.g. days)."""
if now < start + cliff:
return 0
if now >= start + duration:
return total
return total * (now - start) // duration
# 1,200 tokens, 12-month cliff, 48-month total duration, times in months
for month in (6, 12, 24, 48):
print(month, vested(1200, 0, 12, 48, month))This prints 6 0, 12 300, 24 600, and 48 1200. At month 12 the cliff ends and 300 tokens, a quarter of the grant, appear at once. Multiplying before dividing matters. Writing total * ((now - start) // duration) would return 0 until the very end.
Note that duration is the total length from the start, and it includes the cliff. A "12-month cliff and 48-month vesting" grant in this convention ends at month 48, not month 60.
Adding a TGE unlock
A TGE unlock releases a fixed percentage immediately, before any cliff. Only the remainder follows the schedule. The next program implements both cliff conventions side by side so you can compare them.
def split_tge(total, tge_pct):
tge = total * tge_pct // 100
return tge, total - tge
def vest_catchup(total, tge_pct, cliff, duration, month):
tge, rest = split_tge(total, tge_pct)
if month < cliff:
return tge
if month >= duration:
return total
return tge + rest * month // duration
def vest_post_cliff(total, tge_pct, cliff, linear, month):
tge, rest = split_tge(total, tge_pct)
if month < cliff:
return tge
if month >= cliff + linear:
return total
return tge + rest * (month - cliff) // linear
print("month catchup post_cliff")
for month in (0, 11, 12, 13, 24, 48):
a = vest_catchup(1000, 10, 12, 48, month)
b = vest_post_cliff(1000, 10, 12, 36, month)
print(f"{month:5d} {a:7d} {b:9d}")Both grants are 1,000 tokens with 10% at TGE and full release at month 48. The output is:
| Month | Catch-up | Post-cliff |
|---|---|---|
| 0 | 100 | 100 |
| 11 | 100 | 100 |
| 12 | 325 | 100 |
| 13 | 343 | 125 |
| 24 | 550 | 400 |
| 48 | 1000 | 1000 |
The two schedules agree at the start and end but differ in the middle. At month 12, the catch-up schedule releases 225 tokens in one step while the post-cliff schedule releases none. A model that uses the wrong convention will misplace the biggest unlock by up to 225 tokens in this small example.
The shape of a schedule
Read the stages as events on a calendar, not just as a curve. Each boundary is a date that traders can watch, which is why the next chapter treats unlocks as events.
Release granularity
Linear release is not always continuous. Check the step size, because it changes how supply reaches the market.
- Per second or per block. Common in on-chain streaming contracts. Supply grows smoothly.
- Daily. Small, regular amounts that the market absorbs easily.
- Monthly. The most common for team and investor grants. Each month produces a visible step.
- Quarterly or annual. Fewer but larger steps, which can be large relative to daily trading volume.
Integer division also rounds down. With 900 tokens over 36 months, each month releases exactly 25. With 1,000 tokens over 36 months, each month releases 27.78 on average. The contract rounds each total down, and the last period releases the remainder. These differences are small but explain why your model may be off by a few tokens against the chain.
Common errors
Treating the cliff as a delay for everything. If a schedule has a TGE unlock, that portion is available immediately, whatever the cliff says. Allocation tables often show the cliff in one column and the TGE percentage in another, and readers miss the second.
Counting the cliff twice. In the catch-up convention, the duration already includes the cliff. Adding the cliff to the duration shifts the end date late by a full cliff length.
Applying the TGE percentage to the wrong base. "10% at TGE" normally means 10% of that allocation, not 10% of the total supply. Using the second reading overstates the unlock for small allocations.
Assuming all dates start at TGE. Some grants start from an earlier date, such as the date an investor signed, so the cliff may end before TGE or at TGE. Other grants start when a milestone is met. Read the start date explicitly.
Ignoring non-time conditions. Some schedules are revocable, tied to milestones, or can be changed by governance. A plain time-based formula then gives only an upper bound.
Using months of unequal length. A "12-month" cliff measured in calendar months differs from 360 days. Contracts count seconds. For precision, convert everything to timestamps.
Reading a schedule from an allocation table
When you read a row such as "Investors, 15%, 0% TGE, 12-month cliff, 24-month linear," ask these questions in order:
- What is the base for the percentage: total supply or maximum supply?
- How much unlocks at TGE?
- Does the cliff end in a catch-up step or a drip start?
- What is the release step: daily, monthly, or quarterly?
- When exactly does the clock start?
- Can the schedule be changed or revoked?
Answering these makes your supply model reproducible. The next chapters rely on this: unlock events are the dates where these schedules step, and the supply model sums them all.
Edge cases to keep in mind
- Zero cliff and zero TGE. The schedule simply drips from day one, and the same function works with
cliff = 0. - Cliff equals duration. The whole grant releases at once on the cliff date, a "bullet" unlock.
- TGE of 100%. The whole allocation is liquid immediately, and the schedule has no effect.
- Early unlocks. Governance votes or contract upgrades may shorten a schedule. Your model should accept overrides for individual dates.
- Re-locking. A holder may voluntarily deposit unlocked tokens into staking or a new lock. This reduces circulating supply even though the original schedule has released them.
Exercise
A team grant is 2,400 tokens with 0% at TGE. Using the catch-up convention with a 12-month cliff and a 36-month total duration, how many tokens are vested at month 18? Then compute the same for the post-cliff convention with a 12-month cliff and a 24-month linear period (same month-36 end date).
Show answer
Catch-up: 2400 18 // 36 = 1200 tokens. Post-cliff: 2400 (18 - 12) // 24 = 2400 * 6 // 24 = 600 tokens. At the same date the catch-up grant has vested twice as much, so the convention changes how large the unlocks are in the middle of the schedule.
Exercise
A grant of 1,000 tokens has 20% at TGE and a 6-month cliff with a 30-month total duration, using the catch-up convention. How many tokens can the holder sell at month 5, and at month 6?
Show answer
TGE amount is 1000 20 // 100 = 200, and the rest is 800. At month 5 the cliff has not ended, so the holder has 200. At month 6 the cliff ends and the accrued amount is 800 6 // 30 = 160, so the holder has 200 + 160 = 360. The cliff date adds 160 tokens at once.