Sub topic 6
Owner powers: mint, pause, blacklist, tax changes, and proxies
This chapter assumes you understand wallet addresses, transactions, tokens, decentralized exchanges (DEXs), and basic block explorer pages. You will use that knowledge to inspect who can change a token after deployment.
A token contract often has privileged functions. A privileged function is a function restricted to an owner, administrator, or role. These functions may be legitimate administration, but they can also let insiders change the trading rules after buyers arrive.
The main powers to check
Inspect the verified contract code and its permission roles. Look for these capabilities:
- Minting creates new tokens. An owner who can mint without a strict cap can dilute existing holders or sell newly created tokens.
- Pausing stops some or all transfers. A pause may protect users during an emergency, but it can also prevent selling while insiders exit.
- Blacklisting blocks selected addresses. A blacklist can target bots, but it can also target ordinary buyers or every address that tries to sell.
- Tax changes alter the fee charged during transfers. A tax may be reasonable and fixed, while an owner-controlled tax can become unexpectedly high.
- Upgradeability lets an administrator replace the contract logic. The current implementation may look safe while a later implementation adds harmful behavior.
A role may belong to a multisignature wallet, called a multisig, rather than one person. A multisig requires several signers to approve an action. That reduces single-key risk, but it does not make a dangerous permission harmless.
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
contract RiskyToken {
address public owner = msg.sender;
address public pair;
uint256 public sellTaxBps;
bool public paused;
mapping(address => bool) public blacklisted;
mapping(address => uint256) public balanceOf;
modifier onlyOwner() {
require(msg.sender == owner, "not owner");
_;
}
function setPair(address p) external onlyOwner { pair = p; }
function mint(address to, uint256 amount) external onlyOwner {
balanceOf[to] += amount;
}
function setPaused(bool value) external onlyOwner { paused = value; }
function setBlacklist(address a, bool value) external onlyOwner {
blacklisted[a] = value;
}
function setSellTax(uint256 bps) external onlyOwner {
sellTaxBps = bps;
}
function transfer(address to, uint256 amount) external returns (bool) {
require(!paused, "paused");
require(!blacklisted[msg.sender], "blacklisted");
uint256 fee = to == pair ? amount * sellTaxBps / 10_000 : 0;
balanceOf[msg.sender] -= amount;
balanceOf[to] += amount - fee;
balanceOf[owner] += fee;
return true;
}
}The tax uses basis points. Ten thousand basis points equal 100 percent. If the owner sets the sell tax above 10,000, the subtraction can revert. Even a lower tax can make selling uneconomical. Check whether the contract applies different rules to buys, sells, transfers, and specific addresses.
Proxies and hidden administrators
A proxy separates the address users call from the implementation contract that contains the logic. The proxy stores balances and forwards calls. An administrator can often change the implementation address.
Check the explorer for proxy labels, implementation addresses, and administrator or upgrade functions. Review both the proxy and current implementation. Also check whether an upgrade can happen immediately or requires a timelock, which is a delay that gives users time to react.
A reported “renounced ownership” result is incomplete evidence. The proxy administrator, separate roles, mint authority, or an external controller may still retain power. Compare every privileged address with the project’s published multisig and governance records.
A practical review
Record each power, its current holder, its maximum value, and its delay. Then ask:
- Can the holder mint or upgrade without a supply cap?
- Can transfers or sells be paused or blocked?
- Can taxes be raised, and are there exemptions?
- Is the administrator a known multisig with a public signer policy?
- Can you simulate a small sell after buying, without signing an unlimited approval?
Exercise
The owner address is the zero address, but an EIP-1967 implementation slot is non-zero. What should you investigate next?
Show answer
Treat the token as potentially upgradeable. Identify the proxy administrator or upgrade role, inspect the current implementation, and check whether another role can change it.