Learn · Execution

What is MEV and how does sandwiching work?

Written by XAUConnect Labs · Reviewed against live product behavior · Updated 16 October 2026

What is MEV and how does sandwiching work? A searcher sees your pending swap, buys the token before you, lets your trade push the price, and sells into you.

Your slippage setting is the width of that trap. If you allow 5 percent on a public Ethereum mempool, a searcher can legally fill you near that floor. Private order flow and tighter slippage cut the room. They do not remove miners, validators, or searchers from the chain. On Solana the same idea shows up as priority fees and failed landings, not as an ERC-20 approval.

What to set

On a deep pair, 0.5 percent is a normal guard. On a memecoin, a wide setting gets you filled and hurt. If the transaction reverts, take a new quote. Do not raise slippage until the trade goes through and then discover the fill.

The setting that limits the damage

Your slippage is the room a sandwich can use. Keep it tight on deep pairs and take a new quote if the trade reverts. The field is explained in how to set slippage tolerance. A private route can hide the transaction from the public mempool. It does not change the pool's price impact.

Legal

Risk disclosure

XAUConnect is a non-custodial swap aggregator. Digital assets are volatile and may lose value rapidly. Content on this page is educational and not investment advice. Verify every contract address on the official block explorer before approving a transaction.

Frequently asked questions

What is the best way to trade what is MEV and how does sandwiching work?

Your slippage setting is the width of that trap. If you allow 5 percent on a public Ethereum mempool, a searcher can legally fill you near that floor.

Does XAUConnect pay the searcher?

No. The loss, if it happens, is a worse price inside the slippage you signed. The platform fee is a separate line.

Live execution

Trade on XAUConnect

Open the swap page to compare live routes, set slippage, and sign from your own wallet. You keep the keys.

Continue exploring

Related markets, guides & networks

Next pages on this subject. Read them before you trade.

Build programmatically

Swap via API for bots and AI agents: quotes, builds, and cross-chain routes.

Developer quickstart