Sub topic 2
Staking Rewards and the Cost of Inflation
This chapter assumes you know what a token is, how a wallet signs transactions, and how to compute percentages. It covers four topics in order and ends with a worked unlock example.
Staking rewards and the cost of inflation
Staking locks tokens to help secure a proof-of-stake network. Stakers earn newly issued tokens as rewards. Those new tokens are inflation: total supply grows, so each existing token represents a smaller share. If a network issues 5% new tokens per year, a holder who stakes nothing loses about 5% of their share per year. Net yield is roughly the reward rate minus the inflation rate.
Reading a token allocation table
An allocation table lists each holder, the share of total supply, and the release terms. Check three things for each row: the share, the cliff, and the release length.
| Holder | Share of supply | Terms |
|---|---|---|
| Team | 20% | 12-month cliff, then 36-month linear |
| Investors | 15% | 12-month cliff, then 24-month linear |
| Community | 40% | 10% at launch, then 48-month linear |
Vesting: cliffs, linear release, and TGE unlocks
A cliff is a waiting period with no release. Linear release then frees tokens evenly over time. The TGE (token generation event) is the launch, and a TGE unlock is the share released at that moment.
def vested(total, start, cliff, duration, now):
if now < start + cliff:
return 0
if now >= start + duration:
return total
return total * (now - start) // duration
print(vested(1200, 0, 12, 48, 12)) # 300What a token unlock is and when it happens
An unlock is the date when a vesting tranche becomes transferable. Unlock dates appear in the project's documentation and in the vesting contract. Compare each unlock with circulating supply, not total supply, because the unlock adds to what is already trading.
Exercise
Using vested(1200, 0, 12, 48, 18), how many tokens are released at month 18?
Show answer
1200 * 18 // 48 = 450 tokens.