Featured5 min readIncludes video walkthrough

What Is a Max Wallet Limit? Why a 2% Cap Can Make Your Memecoin Buy Fail

What Is a Max Wallet Limit? Why a 2% Cap Can Make Your Memecoin Buy Fail

You hit confirm, the wallet spins, and a red error appears. The price didn’t move and the liquidity is still there, but the swap reverts and the gas is gone. The token’s own code turned you away.

This guide follows What Is a Honeypot? and What Is a Rug Pull?, two other ways a token’s contract can cost memecoin traders money.

For the full video explanation, check out this YouTube video:

One Line of Code, One Rejected Buy

A max wallet is a rule inside a token’s smart contract. It limits how many tokens one address can hold. Developers usually set it as a share of total supply, and 2% is a common choice. If a purchase would push your balance past the line, the contract rejects the transfer and the whole transaction reverts.

The logic is a single check in the token’s transfer function. The verified Grumpy Cat contract on Etherscan shows the pattern in plain code. A require statement stops a buy if the recipient’s balance plus the incoming amount exceeds the cap, and the error reads “Transfer amount exceeds maximum wallet.” Other contracts word it differently, such as “Exceeds the maxWalletSize.”

This is not a market condition, a liquidity problem or a bug. The contract is doing what its developer told it to do.

How a 2% Cap Kills a Buy

Take a token with a supply of 1 billion. A 2% max wallet means no address can hold more than 20 million tokens.

  • You hold 15 million and try to buy 8 million. The contract adds them and gets 23 million, which is 3 million over the cap. The whole swap fails.
  • It does not fill you partway. It will not buy 5 million and skip the rest.
  • The fix is arithmetic. You can still buy up to 5 million, since that brings you to exactly 20 million.
  • A fresh wallet hits the same wall. A buyer with zero tokens who tries to buy 25 million in one go fails, because no wallet can hold more than 20 million.

A blocked buy also costs money. Uniswap’s team notes that a failed swap still burns gas, so every retry is paid for in ETH.

Why Memecoin Developers Add It

Teams set caps to protect a launch. Without one, a single wallet can grab a large share of supply in the first block and sell into everyone else once the price climbs. A cap makes that harder and spreads supply across more holders. Max wallet limits often sit beside max transaction caps and cooldown timers as standard anti-whale tools.

Caps come in different sizes and lifespans. According to its code, the Grumpy Cat contract sets its limit at 0.89% of total supply once trading opens and ties the check to a timer, so the restriction applies only for a set period after launch. Other tokens keep theirs permanently.

The rule also has holes. It applies per address, not per person, so a determined buyer can split an order across several wallets. A cap slows whales down. It does not stop them.

Plenty of tokens skip it altogether. Established tokens such as Uniswap’s UNI carry no max wallet, so no UNI buy will ever fail for that reason. Caps are mostly a launch-stage tool, and memecoins use them far more than blue-chip assets do.

Who the Cap Does Not Apply To

Not every address plays by the rule. Most contracts keep an exemption list, and the Grumpy Cat code skips the owner’s address when it runs the check.

Exempt address

Why

Deployer or owner wallet

Developers often need a large balance at launch

Liquidity pool

The pool holds a huge share of supply by design, so it must be excluded or the token could not trade

Router and dead address

Some contracts exclude them so swaps and burns work normally

The list explains a common frustration. A wallet near the top of the holder list can look like it breaks the cap, when the contract simply exempts it. Check the exemptions before you assume something is wrong.

The developer may also hold the controls. Some contracts include an owner-only function that changes the cap or removes it entirely, while other teams lock the limits at launch. Either way, the number you see today may not be the number that applies next week.

How to Check a Max Wallet on Etherscan

You can read the cap before you trade. Etherscan works for Ethereum tokens, and BscScan and similar explorers follow the same layout.

1. Open the contract. Search the token’s contract address, open the Contract tab and confirm the source code is verified.

What Is a Max Wallet Limit? Why a 2% Cap Can Make Your Memecoin Buy Fail2. Read the variables. Select Read Contract and look for maxWallet, maxWalletAmount or _maxWalletSize. The Grumpy Cat contract exposes maxWallet as a public variable, so it appears here.

What Is a Max Wallet Limit? Why a 2% Cap Can Make Your Memecoin Buy Fail3. Search the code if it is missing. Developers often mark the variable private, which hides it from Read Contract even when the cap is active. Open the Code tab and search for “maxWallet.”

4. Check who can change it. Look in Write Contract for functions such as setMaxWallet or removeLimits. They show whether the owner can change or lift the cap.

The value usually appears in raw token units. If the token uses 18 decimals, divide by 10^18 for the real number, then compare it to total supply to get the percentage.

Don’t read too much into an empty search. If the Read tab shows only standard functions such as balanceOf, allowance and decimals, plus governance or minting features, the token probably has no cap. That is the case with UNI.

When Your Buy Fails

Start with the numbers. Check your balance, find the cap and cut your order so the total stays under the limit.

If the amount is fine and the swap still reverts, rule out the usual suspects. Uniswap’s page on slippage and failed swaps lists slippage that is too tight, an expired deadline and too little ETH for fees. Taxes and anti-bot checks can also trigger a revert, so a max wallet is only one possible cause.

Check the cap before you buy, not after the first failure. Thirty seconds on the contract tells you how much you can hold and whether the limit is permanent.

What This Guide Does Not Cover

Tokens on other chains, where caps can work differently, and the anti-bot, tax and cooldown rules that can also revert a swap. The contract details are from the verified code linked above and describe that token only.

Key Takeaways

  • A max wallet caps how many tokens one address can hold, and 2% of supply is a common setting.
  • A buy that would push you past the cap reverts in full. It never fills partway, and the gas is spent.
  • Developers use caps at launch to slow whales, but one person can still split an order across wallets.
  • The owner, the liquidity pool and sometimes the router are exempt, and the owner may be able to change the cap.
  • Read the contract on Etherscan before you buy: check maxWallet, the code and the owner’s functions.

A max wallet is only one switch the creator controls, and the owner-only functions are where traders get caught. What Are Mint and Freeze Authority? covers two more switches worth checking on a token before you buy.

Enjoyed this article?

Discover more insights and analysis

← More ArticlesJoin our Telegram