Wallet Crumbs

Why swaps fail on taxed tokens

Some tokens take a fee every time they move, from a few percent to "everything". When you sell one, the exchange expects to receive your full amount but gets less, so the swap fails with errors like UniswapV2: K, INSUFFICIENT_OUTPUT_AMOUNT or just "transaction failed". The usual fix is raising slippage a little above the tax and making sure the sale goes through a route that supports taxed tokens.

What a transfer tax is

A normal token moves exactly the amount you send. A "taxed" or "fee-on-transfer" token runs extra code on every transfer and keeps a slice: it might go to the project's wallet, get burned, or get shared out to other holders ("reflections"). Many tokens from the 2021 era work this way, often with a different tax for buying and selling.

Why it breaks swaps

When you sell, the exchange works out the price from the amount you said you'd send. Then the token's tax takes its cut on the way to the pool, the pool receives less than expected, and the numbers no longer add up:

How to sell anyway

  1. Find out the sell tax. The project's site or contract may say, or a scan will show what's actually lost when the sale is simulated.
  2. Set slippage a bit above it. For a 10% tax, try 12%. Don't set 50% "just in case": a high limit is an open invitation for bots to take the difference.
  3. If the app still fails, sell directly on the explorer using swapExactTokensForETHSupportingFeeOnTransferTokens. That function measures what really arrived instead of assuming. Here's how.
  4. Expect less than the quote, by roughly the size of the tax.

Other limits that look like a tax problem

When the tax is the trap

In many token contracts the owner can change the tax at any time. If the sell tax has been set to 90%, 99% or 100%, the token is effectively a honeypot: technically sellable, practically worthless. No slippage setting fixes that, and nobody can "unlock" it for you, whatever they promise.

Related: Why can't I sell my token? · How to sell a token on Etherscan

Wallet Crumbs simulates selling each token as your address, so it shows the real tax you'd lose, not the one the project advertises, and whether the sale goes through at all. Free, no login, nothing to connect.

Scan an address