Sub topic 6
Owner Powers: Mint, Pause, Blacklist, Tax Changes, and Proxies
This chapter assumes you can read a block explorer page, know what an ERC-20 token is, and have swapped a token on a decentralized exchange (DEX). You don't need to write Solidity, but short snippets help. The earlier chapters covered launches, tokenomics, and liquidity locks. This chapter covers a different question: what can the deployer still do to the token after launch?
Why owner powers matter
A locked liquidity pool stops the deployer from withdrawing the pool. It does not stop the deployer from changing the token's rules. Many tokens keep an owner address with special functions. Each function is a lever. Some levers are normal, and some let one key decide who can sell, how much they receive, or how many tokens exist.
The risk is not that a power exists. The risk is a power that is unlimited, unannounced, and held by one key.
The common privileged functions
| Power | What it does | How it hurts holders |
|---|---|---|
| Mint | Creates new tokens | Dilutes holders. The owner can mint a large amount and sell it into the pool. |
| Pause | Halts all transfers | Holders can't sell while the owner exits, or the owner pauses at a price they choose. |
| Blacklist | Blocks chosen addresses from transferring | The owner can trap any wallet, or block everyone except insiders. |
| Tax change | Sets the fee taken on buys or sells | An uncapped sell tax can reach 100% or more. |
| Max wallet or max transaction | Limits balances or trade size | Can be raised for insiders or lowered to block exits. |
| Proxy upgrade | Replaces the contract logic | Every rule above can be added later, even if the current code looks clean. |
Some of these have legitimate uses. A stablecoin issuer may blacklist sanctioned addresses. A new token may use a temporary max-transaction limit to slow bots in the first minutes. The question is whether the power is bounded, time-limited, and controlled by something more accountable than one wallet.
What the code looks like
The contract below is a simplified illustration of risky owner powers. It is not a complete ERC-20.
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
// Simplified illustration of risky owner powers. Not a complete ERC-20.
contract RiskyToken {
address public owner = msg.sender;
address public pair;
uint256 public sellTaxBps;
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 setSellTax(uint256 bps) external onlyOwner { sellTaxBps = bps; }
function setBlacklist(address a, bool b) external onlyOwner { blacklisted[a] = b; }
function transfer(address to, uint256 amount) external returns (bool) {
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;
}
}Three details matter here.
setSellTaxhas no upper bound. Tax is measured in basis points (bps), where 10,000 bps equals 100%.- If
sellTaxBpsgoes above 10,000, thenfeeis larger thanamount. The lineamount - feeunderflows, and Solidity 0.8 reverts on underflow. Every sale to the pair then fails. The token becomes a honeypot (a token you can buy but not sell) after a single owner transaction. - A sell tax below 10,000 bps still hurts. At 9,900 bps, a seller keeps 1% and the fee goes to the owner.
Note that setBlacklist can target any address, including the liquidity pair. Blacklisting the pair stops all trading.
Proxies: the power that includes all others
A proxy contract holds the token's storage and balances. It forwards each call to a separate implementation contract that holds the logic. The owner of the proxy (often called the admin) can point it at a new implementation. This is useful for fixing bugs, and it is also a way to rewrite the token's rules after people have bought.
For this reason, a clean-looking implementation proves little if the contract is upgradeable. Whoever controls the upgrade key controls the future code.
Standard proxies write the implementation address to a fixed storage slot defined by EIP-1967. You can read it directly. The script below reads the owner and the implementation slot. It uses ethers v6 and top-level await, so save it as an ES module (for example check.mjs) and set RPC_URL and TOKEN_ADDRESS in your environment.
import { ethers } from "ethers";
const provider = new ethers.JsonRpcProvider(process.env.RPC_URL);
const tokenAddress = process.env.TOKEN_ADDRESS;
const abi = [
"function owner() view returns (address)",
"function totalSupply() view returns (uint256)",
];
const token = new ethers.Contract(tokenAddress, abi, provider);
// EIP-1967 implementation slot: a non-zero value means the contract is an upgradeable proxy.
const IMPL_SLOT =
"0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc";
const [owner, impl] = await Promise.all([
token.owner().catch(() => null),
provider.getStorage(tokenAddress, IMPL_SLOT),
]);
console.log("owner:", owner);
console.log("ownership renounced:", owner === ethers.ZeroAddress);
console.log("upgradeable proxy:", BigInt(impl) !== 0n);If owner prints null, the contract has no owner() function. It may use a different access-control pattern, such as roles, so you still need to read the code.
Reading the result correctly
The script answers two narrow questions. Interpret the output with care.
- Renounced ownership means the owner role was set to the zero address, so
onlyOwnerfunctions can no longer be called. It is a good sign only if the contract is not a proxy and has no second privileged role. - Upgradeable proxy: true means renouncing the token's
ownermay not matter. The proxy admin is stored in a different slot and can still change the implementation. - Owner is a multisig or timelock is better than a plain wallet. A multisig requires several signers. A timelock delays changes so holders can react. Check the owner address on the explorer to see whether it is a contract or a normal wallet.
How the pieces connect
A practical review procedure
Work through these steps on the block explorer before you buy.
- Confirm the contract is verified. If the source code is not published, you can't read the powers. Treat unverified code as a red flag.
- Find the owner. Open the Read Contract tab and call
owner(). Check whether the address is a zero address, a normal wallet, a multisig, or a timelock. - List the privileged functions. In the Write Contract tab, look for names such as
mint,pause,setTax,setFee,blacklist,setMaxTx, andupgradeTo. Note which areonlyOwner. - Check for caps. In the source, look for
require(fee <= 500)or similar. A cap of 5% to 10% is a bounded power. No cap is an unbounded power. - Check for proxy status. Run the slot check above, or look for a "Proxy" label on the explorer. Then identify who holds the admin role.
- Look at history. Review past transactions from the owner. Frequent calls to tax or blacklist functions suggest the owner uses them actively.
- Test a small sell if you decide to proceed. A simulation or a tiny trade shows whether sales work now. It can't show whether they will work tomorrow.
Common mistakes
- Treating "renounced" as "safe." Renouncing removes one key. It does not remove a proxy admin, a second role, or an external controller.
- Treating an audit as a promise about the future. An audit reviews code at one point in time. If the contract is upgradeable, the audited code may not be the code that runs later.
- Ignoring small powers. A max-transaction setting that the owner can set to 1 token is as effective at blocking exits as a blacklist.
- Trusting the explorer's labels alone. Labels help, but you should confirm the owner and slot values yourself.
Judging how much risk a power carries
Weigh each power on four questions: Is it bounded by a cap in code? Is it delayed by a timelock? Is it held by more than one party? Is it needed for the token's purpose? A fee that the owner can set between 0% and 5%, behind a 48-hour timelock held by a multisig, is a modest risk. An uncapped fee, held by a fresh wallet, with no delay, is a major one. This chapter's checks feed into the honeypot patterns and the final checklist later in the tutorial. This tutorial is educational and does not give financial advice.
Exercise
A token's contract is verified, and owner() returns the zero address. The EIP-1967 implementation slot holds a non-zero address. Can you conclude that nobody can change the token's rules? Explain, and name what you would check next.
Show answer
No. A zero owner() shows that one role was renounced, but the non-zero implementation slot shows the contract is an upgradeable proxy. The proxy admin, which is stored separately from the token's owner, may still replace the implementation and add minting, blacklisting, or tax changes. Next, find the proxy admin address (the EIP-1967 admin slot or the explorer's proxy details) and check whether it is a normal wallet, a multisig, a timelock, or also renounced.
Exercise
In the RiskyToken example, the owner calls setSellTax(10_001). What happens when a holder tries to sell to the pair, and why?
Show answer
The transaction reverts. The fee is (amount * 10001) / 10000, which is larger than amount. The expression amount - fee underflows, and Solidity 0.8 reverts on underflow, so no sale to the pair can succeed. The token behaves as a honeypot even though buying still works.