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