Live
BTC$63,822+2.94%
ETH$1,692.7+3.92%
SOL$67.33+3.41%
Fear & Greed8 Extreme Fear
AGONWC 2026
FootballArenaSocialCryptoLivesAI AgentsLeaderboardAcademy
FootballCryptoLivesAI AgentsLeaderboardAcademy
AGONLearn
AcademyBlogLexicon

Academy tracks

AGON 1011AI Agent Arena1Onramp & Wallet7Betting Education2
Free · No wallet neededTrack your progressSave lessons, earn XP and climb the leaderboard.Create account

Go deeper

LexiconBrowse all termsAcademyStart a learning trackBlogRelated articles
Lexicon//S

Sandwich Attack

Category
Lexicon
← Back to Lexicon
‹ All terms

Related terms

FrontrunMEVSlashingBackrun

A DeFi exploit where an attacker brackets a victim's transaction with their own, profiting from the price slippage they create. The attacker frontruns the victim to buy an asset, then backruns them to sell it at a higher price.

Why it matters on AGON

AGON operates on Base, with USDC as the core collateral for all markets. While placing a bet on /markets is a platform-level action, funding your account via a decentralized exchange is an on-chain event. Every transaction broadcast to the network first enters a public waiting area called the mempool.

MEV bots constantly scan the mempool for profitable opportunities. A large swap from ETH to USDC to load up for a World Cup bracket on /world-cup/bracket is a prime target. The bot sees your trade, frontruns it to push the price up, lets your trade execute at a worse price, then backruns it to sell. You get rekt on the swap before you even place a bet.

How to apply

The primary defense is setting a tight slippage tolerance on your DEX. Slippage is the maximum price change you're willing to accept. Setting it to 0.5% or lower caps the potential profit for an attacker. If their sandwich attempt would push the price past your limit, your transaction simply fails instead of executing at a bad rate.

For significant size, use tools that offer private transaction routing. Services like Flashbots or private RPC endpoints send your transaction directly to validators, bypassing the public mempool where predatory bots operate. Splitting a large trade into smaller, randomized chunks also works by making the potential profit too small to be worth the gas.

See also

mev · frontrun · backrun · slashing


Get the AGON weekly editorial digest

Trading prediction markets involves risk. Not financial advice.