Sub topic 1
Tokens, supply, and why market cap can mislead
Market capitalization is the first number most people see when they look up a token. It is also easy to manipulate. This chapter explains how a token's supply is defined and how market cap is calculated. It then shows why the figure says little about how much money you could actually take out.
Prerequisites
This chapter assumes you already know the following:
- You can use a wallet and an exchange, and you know what a blockchain transaction is.
- You know that a token is a balance recorded by a smart contract, not a coin native to the chain.
- You can read short Python. The code here is small and fully commented in the text around it.
Later chapters build on this one. Liquidity pools, pump-and-dump mechanics, and holder concentration all depend on the supply vocabulary below.
What a token contract actually stores
On Ethereum-compatible chains, most tokens follow the ERC-20 standard. The contract is a ledger. It maps each address to a balance and exposes a few functions, including balanceOf, transfer, and totalSupply.
Two details matter for everything that follows:
- Balances are integers. A token with 18 decimals stores one whole token as
1000000000000000000. Explorers and wallets divide by10**decimalsfor display. A contract can set decimals to any value, and a careless reader can misjudge quantities by orders of magnitude. - The contract's own code decides who can change the ledger. If the code includes a
mintfunction, whoever may call it can create new tokens. Nothing in the standard forbids this.
The token's creator also decides the starting distribution. Typically the deployer receives the entire initial supply and then sends it to a pool, to other wallets, or to a vesting contract.
The supply vocabulary
"Supply" is not one number. Data sites report several, and they do not always agree.
| Term | Meaning | Where it can mislead |
|---|---|---|
| Total supply | Tokens that exist now, usually minus burned tokens | Includes locked, team, and unvested tokens |
| Circulating supply | Tokens considered freely tradable | Often self-reported by the project, and the definition varies |
| Max supply | The cap the project says it will never exceed | Only a promise unless the code makes minting impossible |
| Burned supply | Tokens sent to an address nobody controls | A "burn" to an address that is actually controlled is not a burn |
| Locked or vested supply | Tokens held in a contract that releases them over time | The lock's end date and the owner's powers decide how safe it is |
A burn address is an address with no known private key, such as 0x000000000000000000000000000000000000dEaD. Tokens sent there are effectively removed from circulation. Check that the burn really went to such an address and that the contract cannot mint replacements.
The categories overlap in practice. A team wallet may count as circulating on one site and not on another. For a scam token, this ambiguity helps the creator. If the creator controls most of the supply but the data site counts it as circulating, the market cap looks large and the token looks widely held.
How market cap is calculated
Market cap is a multiplication:
market cap = price × circulating supply
fully diluted valuation (FDV) = price × max (or total) supplyThe FDV answers a different question: what would the token be worth in total if every token existed and traded at today's price? It is usually the larger number, and it is useful for estimating future selling pressure when large allocations are still locked.
Three weaknesses make the formula unreliable as a measure of value.
The price is the last small trade
A token's price comes from its most recent trades or from the ratio of reserves in its pool. A single trade of a few dollars can set it. Market cap multiplies that price across the entire supply. It assumes every holder could sell at that price, which no market allows.
The supply may not be real money
Creating a token costs a small gas fee. Anyone can deploy a contract with a supply of one quadrillion and pair it with a small amount of ETH. The headline market cap then looks enormous. It reflects only the supply the creator chose to mint, multiplied by a price set by one tiny pool.
Market cap ignores exit depth
What matters to a holder is how much they receive when they sell. That depends on the money sitting on the other side of the trade, which is the liquidity. The next chapter covers pools in detail. Here a short model is enough.
A worked example: paper value versus realizable value
Suppose a new token has a total supply of 1,000,000,000. A pool holds 1,000,000 tokens and 100 ETH. We assume ETH trades at $3,000, which is an illustrative number. The code below applies the constant-product rule (reserves multiplied together stay constant, apart from the fee), which many decentralized exchanges use.
ETH_PRICE_USD = 3000.0
FEE = 0.003
def amount_out(amount_in, reserve_in, reserve_out, fee=FEE):
"""Output of a constant-product (x * y = k) swap after the fee."""
amount_in_after_fee = amount_in * (1 - fee)
return reserve_out * amount_in_after_fee / (reserve_in + amount_in_after_fee)
total_supply = 1_000_000_000
circulating = 1_000_000_000 # the site counts everything as circulating
token_reserve = 1_000_000.0
eth_reserve = 100.0
spot_price_eth = eth_reserve / token_reserve
spot_price_usd = spot_price_eth * ETH_PRICE_USD
market_cap_usd = spot_price_usd * circulating
pool_value_usd = 2 * eth_reserve * ETH_PRICE_USD # both sides of the pool
print(f"Spot price: ${spot_price_usd:.2f}")
print(f"Market cap: ${market_cap_usd:,.0f}")
print(f"Pool value: ${pool_value_usd:,.0f}")
for sold in (10_000_000, 100_000_000):
paper = sold * spot_price_usd
real = amount_out(sold, token_reserve, eth_reserve) * ETH_PRICE_USD
print(f"Sell {sold:>11,} tokens: paper ${paper:>12,.0f}, "
f"received ${real:>10,.0f} ({real / paper:.1%} of paper)")Running it prints a spot price of $0.30 and a market cap of $300,000,000. The whole pool is worth only $600,000. A holder selling 10,000,000 tokens (1% of supply) sees $3,000,000 of paper value but receives about $273,000. A holder selling 100,000,000 tokens (10% of supply) sees $30,000,000 on paper but receives about $297,000, which is under 1% of the paper figure.
The second sale cannot extract more than the 100 ETH in the pool, however many tokens are sold. That ceiling is the real limit on what anyone can cash out, and it is about 0.2% of the displayed market cap.
Why scammers care about this gap
The gap between paper value and realizable value is the raw material for both schemes this tutorial covers.
- A creator who holds a large share of supply owns a large paper fortune. A pump-and-dump raises the price so those tokens can be sold into buyers' money.
- A creator who also controls the pool, or can mint new tokens, can drain the real money on the other side. That is a rug pull.
- A high market cap draws attention in rankings and screenshots, and it makes a token look established.
Be careful with two edge cases when you read data pages:
- Self-reported circulating supply. Aggregators sometimes show a market cap of zero or "unverified" when a project has not submitted a supply figure. Others compute it from total supply, which inflates the number.
- Wash trading. The same party can trade between wallets it controls to inflate volume and keep the last price high. Volume on its own does not prove demand.
A habit for reading token pages
Before you rely on a market cap, answer these questions in order:
- What is the total supply, and can the contract mint more?
- How much of the supply sits in the creator's wallets or in unlocked, unvested allocations?
- How much real value (ETH, stablecoins) is paired in the pool?
- How does the market cap compare with that pool value? A ratio of hundreds to one means the number is cosmetic.
The next chapters turn these questions into measurements. Chapter 2 examines the pool, and the holder concentration chapter quantifies who owns the supply.
Exercise
A token has a total supply of 500,000,000 and a price of $0.02 taken from a pool holding $40,000 of paired stablecoin. The site shows all 500,000,000 tokens as circulating. What market cap does the site display, and how many times larger is it than the stablecoin side of the pool? What does the ratio suggest?
Show answer
Market cap = $0.02 × 500,000,000 = $10,000,000. The stablecoin side of the pool is $40,000, so the market cap is 250 times larger. The ratio suggests the figure is mostly paper value. Even a modest sale by a large holder would exhaust the pool's real money long before the displayed market cap could be realized.
Exercise
A project says its max supply is fixed at 1,000,000,000 tokens, but the contract contains a mint function that the owner can call. Which supply figure is a promise and which is enforced, and why does that matter?
Show answer
The max supply is only a promise, because the code allows the owner to create more tokens. The enforced limit is whatever the contract's code permits. If the owner can mint, they can dilute holders at any time, so the stated cap gives no protection.