What Are Rug Pulls and Honeypot Tokens? How Scammers Trap Buyers
A technical breakdown of malicious smart contracts, liquidity theft, and transfer blocks used to trap buyers in decentralized finance markets.
Key points
- Rug pulls occur when developers drain the paired trading liquidity from a decentralized exchange pool.
- Honeypot tokens allow purchases but use hidden smart contract code to block users from selling.
- Scammers use hidden transfer blocks, 99% sell taxes, and blacklist functions to trap buyers.
- Renouncing ownership of a smart contract does not guarantee safety if proxy contracts or backdoors are used.
A rug pull is a decentralized finance exploit where developers abandon a project and steal investor funds by draining the associated trading liquidity. A honeypot token is a related scam where buyers are allowed to purchase the asset but are technically blocked from selling it. Both exploits rely on manipulating the underlying code of digital assets to trap buyers and extract value.
The Mechanics of Decentralized Liquidity
To understand how these exploits function, users must understand how decentralized exchanges operate. Unlike centralized platforms that use order books matching buyers and sellers, decentralized exchanges use an automated market maker model. Trading relies on a liquidity pool, which is a smart contract holding two different assets.
When a developer creates a new digital asset, they must provide initial liquidity so others can trade it. They deposit a paired asset, such as Ethereum ($ETH), alongside their newly created token into a pool. Buyers swap their $ETH for the new token, increasing the amount of $ETH in the pool and decreasing the supply of the new token. The price adjusts algorithmically based on the ratio of the two assets. This growing pool of paired assets becomes the target for scammers.
Rug Pulls: Removing the Floor
In a classic liquidity rug pull, the developer waits for buyers to trade valuable assets into the pool in exchange for the newly created, worthless tokens. Once the pool accumulates a substantial amount of the paired asset, the developer uses their administrative control over the liquidity pool to withdraw all funds.
The developer takes the accumulated $ETH, leaving buyers holding tokens that can no longer be traded because the liquidity pool is empty. The token's price immediately falls to zero. This differs from common crypto scams involving phishing, where a user is tricked into handing over their private keys. In a rug pull, the user actively chooses to buy an asset, unaware that the market structure itself is designed to vanish.
Honeypot Tokens: The Trap
Honeypot tokens are malicious assets coded to prevent selling. The smart contract governing the token contains specific rules that dictate who can transfer the asset and under what conditions. Scammers modify these rules to create a trap.
One common method involves a hidden transfer block. The token's code includes an "approve" or "transfer" function that checks a specific condition before allowing a transaction. The code is written so that only addresses on a specific whitelist—controlled by the scammer—can successfully execute a sell order. Everyone else is permanently blocked.
Another method involves manipulative tax functions. Many decentralized tokens charge a small tax on transactions to fund development. Scammers will hardcode a 99% sell tax into the token.
Consider a numerical example. A user buys 1,000 tokens for 1 $ETH. They later attempt to sell when the price increases. They initiate a swap of 1,000 tokens back to $ETH. The smart contract executes the 99% tax, taking 990 tokens and sending them to the developer's wallet. The user receives the $ETH equivalent for only 10 tokens. The standard slippage limit (the maximum price change a user accepts during a trade) on the exchange will often cause the transaction to fail entirely, rendering the token unsellable.
Scammers also use blacklist functions, coding the contract to automatically add any address that purchases the token to a list of banned addresses. This achieves the same result: the buyer cannot sell, while the developer is free to extract the accumulated value from the liquidity pool.
The Myth of Renounced Ownership
To build false trust, scammers often claim they have "renounced ownership" of a token's smart contract, implying they can no longer alter its rules. Renouncing ownership typically means transferring the administrative rights of the contract to a burn address (an address no one controls).
While true renunciation prevents further code changes, scammers bypass this using proxy contracts. The main contract that users interact with is connected to a secondary, hidden contract that actually dictates the token's behavior. The developer renounces ownership of the primary contract but retains control of the proxy. They can trigger a hidden function in the proxy contract to lock selling or drain liquidity long after they publicly claimed the token was secure.
Common Misconceptions
- Locked liquidity guarantees safety: Scammers often lock initial liquidity for a set period to feign legitimacy. However, a locked liquidity pool does not prevent the developer from hardcoding a honeypot mechanism that stops buyers from selling.
- A smart contract audit means a token is safe: Audits only verify that the code behaves as written. If the code is explicitly written to allow a 99% sell tax or centralized pausing of transfers, an audit will note this, but the token remains dangerous. Users rarely read the full audit reports.
- High trading volume means the token is legitimate: Scammers frequently use automated bots to wash trade their own tokens. They buy and sell the asset between their own wallets to simulate high trading volume and attract retail buyers.
How This Connects to the Broader Market
Rug pulls and honeypots are prevalent on networks with low transaction fees, which make it cheap for scammers to deploy thousands of malicious contracts. These exploits siphon millions of dollars from retail market participants annually.
Unlike traditional finance, where creating and listing a security requires regulatory approval and extensive disclosures, permissionless blockchains allow anyone to deploy an asset in minutes. The responsibility for verifying the integrity of the underlying code falls entirely on the buyer. Market participants rely on third-party block explorers and automated code-scanning tools to detect hidden transfer blocks or malicious tax functions before trading. Understanding these mechanisms is distinct from preventing unauthorized access to a wallet, which requires defending against crypto wallet drainers.
Questions this story raises
- What is the difference between a rug pull and a honeypot?
- A rug pull involves a developer stealing the underlying liquidity, making the token worthless. A honeypot is a token coded to allow buying but prevent selling, trapping the buyer's funds in the asset.
- Can locked liquidity prevent a rug pull?
- Locked liquidity prevents the developer from removing the funds for a specific period. However, it does not prevent a honeypot exploit where the contract code stops buyers from selling.
- How do scammers use sell taxes?
- Scammers code smart contracts to take a percentage of the tokens during a transaction. Setting this tax to 99% effectively steals the funds when a user attempts to sell.
- What does renouncing ownership mean?
- It means the developer transfers administrative control of a smart contract to a dead address, theoretically preventing further code changes. However, scammers can bypass this using hidden secondary contracts.
References
- [1] Smart Contracts — Ethereum Foundation
Evergreen explainer written by Basis Desk's system and checked by an independent model pass for factual errors and advice language. Figures, fees and rules change — the references above are where to verify current specifics. Market figures marked "at the time of writing" come from live exchange data. Report an error: corrections@basisdesk.news · corrections policy.
The Daily Brief, in your inbox at 07:00 ET
Five stories, the numbers that moved, what to watch. Three minutes. No hype, no advice, unsubscribe in one click.
Get the big crypto stories first
A few alerts a day at most: major breaking news and the morning brief. Switch off anytime.
Not financial advice. Basis Desk publishes information, not recommendations. Crypto assets are volatile and you can lose what you invest.