Sub topic 3
Building a circulating supply model
This chapter assumes you can read short Python functions, know what a token allocation is, and can do basic percentage arithmetic. Circulating supply is the number of tokens that holders can trade now. A model projects that number month by month from each allocation's vesting terms.
The model in the code below adds each allocation's TGE (token generation event) unlock to its linear release after the cliff, which is the end of an initial lockup period. Amounts are in millions of tokens.
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},
]
def unlocked(a, month):
tge = a["total"] * a["tge_pct"] / 100
if month < a["cliff"]:
return tge
if month >= a["cliff"] + a["linear"]:
return a["total"]
return tge + (a["total"] - tge) * (month - a["cliff"]) / a["linear"]
def circulating(month):
return sum(unlocked(a, month) for a in allocations)
for m in (0, 12, 13, 24):
print(m, round(circulating(m), 1))Sizing the market impact of an unlock
An unlock is large when it is big relative to the market that must absorb it. Measure it two ways:
- Share of circulating supply: unlock amount divided by circulating supply before the unlock.
- Days of volume: unlock value divided by average daily trading volume in dollars.
For example, a 10 million token unlock against 100 million circulating is a 10% increase. At $2 per token, that unlock is worth $20 million. If daily volume is $5 million, the unlock equals four days of trading.
How vesting contracts work on-chain
A vesting contract is a program on a blockchain that holds tokens and releases them under fixed rules. It stores the start time, cliff, duration, and total amount. When someone calls a release function, the contract computes the vested amount and transfers only the unreleased part.
Verifying schedules against on-chain data
Do not rely only on a published schedule. Check the following:
- Find the vesting contract address in the project's documentation, then open it in a block explorer.
- Confirm the token balance held by the contract matches the allocation size.
- Read the stored start, cliff, and duration values.
- Check whether the owner can change these values or withdraw tokens.
A checklist for evaluating tokenomics
- Is the circulating supply disclosed, and is the fully diluted valuation shown?
- Do the largest allocations have cliffs and linear release?
- Are the next unlock dates and sizes published?
- Does the emission rate exceed the burn rate?
- Are the vesting contracts verified and free of owner override powers?
Exercise
Exercise
A team allocation of 100 million tokens has a 12-month cliff, then releases linearly over 36 months, with no TGE unlock. How many million tokens are unlocked at month 24?
Show answer
Linear release starts at month 12 and runs 36 months. At month 24, 12 of 36 months have elapsed, so 100 × 12 / 36 = 33.3 million tokens are unlocked.