Sub topic 9
Building a Circulating Supply Model
Assume you understand token allocations, percentages, and basic Python. This chapter focuses on turning allocation and vesting terms into a month-by-month estimate of circulating supply.
Circulating supply is the amount of a token that is available outside locked contracts, reserves, or other restricted accounts. A supply model estimates how this amount changes as tokens unlock. It is a schedule model, not a prediction of how many tokens people will sell.
Model the release of each allocation
Start with one row for each allocation, such as the team, investors, community, or treasury. Record:
total: the allocation sizetge_pct: the percentage unlocked at the token generation event (TGE)cliff: the number of months before ongoing vesting beginslinear: the number of months used for the remaining release
A cliff is a waiting period during which the locked portion does not vest. Linear vesting releases equal amounts during each time period after the cliff.
| Allocation | Total tokens | TGE unlock | Cliff | Linear release |
|---|---|---|---|---|
| Team | 200 million | 0% | 12 months | 36 months |
| Investors | 150 million | 0% | 12 months | 24 months |
| Community | 400 million | 10% | 0 months | 48 months |
| Treasury | 250 million | 0% | 6 months | 36 months |
This example treats each month as a discrete point. At month 12, the team and investor schedules begin releasing tokens. A real contract may use seconds and release continuously, so this model is an approximation.
For one allocation, calculate the unlocked amount as follows:
- Before the cliff, return the TGE amount.
- After the full vesting period, return the entire allocation.
- Otherwise, add the TGE amount to the proportional amount vested after the cliff.
allocations = [
{"name": "team", "total": 200, "tge_pct": 0, "cliff": 12, "linear": 36},
{"name": "investors", "total": 150, "tge_pct": 0, "cliff": 12, "linear": 24},
{"name": "community", "total": 400, "tge_pct": 10, "cliff": 0, "linear": 48},
{"name": "treasury", "total": 250, "tge_pct": 0, "cliff": 6, "linear": 36},
] # amounts are millions; times are months
def unlocked(allocation, month):
total = allocation["total"]
tge = total * allocation["tge_pct"] / 100
cliff = allocation["cliff"]
linear = allocation["linear"]
if month < cliff:
return tge
if month >= cliff + linear:
return total
vested_after_cliff = (total - tge) * (month - cliff) / linear
return tge + vested_after_cliff
def circulating(month):
return sum(unlocked(allocation, month) for allocation in allocations)
for month in (11, 12, 13):
before = circulating(month - 1)
after = circulating(month)
increase = (after - before) / before if before else 0
print(f"month {month}: {after:.1f} million, change {increase:.1%}")At month 11, only the community allocation has unlocked, producing 122.5 million tokens. At month 12, the total is 130 million. At month 13, the team, investor, and treasury schedules contribute additional tokens, producing about 197.9 million.
Understand model boundaries
The model sums scheduled allocations. It does not automatically include:
- mining or staking emissions
- token burns
- tokens recovered from a treasury
- tokens held by exchanges or market makers
- tokens that are technically unlocked but still controlled by a contract
- lost or inaccessible tokens
To estimate actual circulating supply, add separate rows or adjustments for these mechanisms. Keep the units consistent. Mixing whole tokens with millions of tokens can create a thousand-fold error.
Check for discontinuities
A cliff creates a sudden increase in circulating supply when a locked allocation begins vesting. In the example, month 13 includes the first monthly releases from three allocations. That jump can matter even when the annual release rate looks moderate.
Compare the change in circulating supply with the token's daily trading volume. An unlock equal to 2% of circulating supply may be easier to absorb when daily volume is large, but volume alone does not prove that selling will occur.
Exercise
A 100-million-token allocation has a 10% TGE unlock, a 6-month cliff, and 24 months of linear vesting. How many tokens are unlocked at month 12?
Show answer
10 million at TGE plus 90 million × (12 - 6) / 24 = 32.5 million tokens.