Hidden Mint Functions: Unlimited Token Supply Risk Explained
A hidden mint function is contract code that lets a privileged address create new tokens on demand, inflating the total supply. Because minting dilutes every existing holder, an owner can quietly print a large batch and sell it into the liquidity pool, crashing the price. The capability may be disguised behind renamed functions or an upgradeable proxy, so a fixed total supply shown on an explorer is not a guarantee. Bytecode analysis is needed to confirm minting is truly disabled.
How hidden minting works
An ERC-20 can include a mint path guarded by an owner or minter role. When called, it increases totalSupply and credits the caller's balance out of thin air. The function may be renamed, hidden behind a proxy that can be upgraded to add it, or restricted to a role the deployer secretly controls.
Why minting is a risk
New tokens dilute the value of existing ones. A deployer who mints a large amount and sells it into the pool extracts real value from holders and drives the price toward zero, the same end state as a rug pull, achieved through inflation rather than liquidity removal.
How Tok{In} detects mint functions
Tok{In} raises the mint_or_burn_function flag when Gigahorse decompilation finds supply-increasing logic reachable by a privileged caller, even when the function is renamed or the contract is an upgradeable proxy. This check runs across all supported networks.
What to do
Prefer tokens where minting is provably disabled, for example a renounced owner with no minter role and a non-upgradeable contract. Treat any active mint capability as ongoing dilution risk, and re-scan before trading since a proxy upgrade can add minting later.
Check any ERC-20 token for this and 20+ other risks in seconds — free, no wallet connection.
Scan a token →Frequently asked questions
- What is a hidden mint function in a token contract?
- It is code that lets an authorized address create new tokens and increase total supply after launch. Hidden means it is obscured, renamed, buried behind a proxy, or gated to a role the team controls, so a token that appears to have a fixed supply can actually be inflated at will.
- Can a token with a renounced owner still be minted?
- Sometimes. If the contract is an upgradeable proxy, new logic including a mint function can be added even after ownership is renounced. Separate minter roles or hidden privileged addresses can also retain the ability. Renouncement alone does not prove supply is fixed; the bytecode must be checked.
- How does minting crash a token's price?
- Every new token dilutes the share held by existing owners. When a deployer mints a large batch and sells it into the liquidity pool, the pool's token side balloons while the paired ETH or stablecoin is drained out, pushing the price sharply down, often to near zero.