Launch app
Cover: What is MEV, and does amountOutMin prevent sandwich attacks?

What is MEV, and does amountOutMin prevent sandwich attacks?

Does amountOutMin prevent sandwich attacks?

MEV in plain language: how bots reorder or wrap your trade to skim value, why amountOutMin bounds the loss without preventing the sandwich, and where a private RPC fits as a separate layer.

BlazePhoenix Engineering · article updated 2026-10-22 · site dataset through 2026-12-02 · 4 min · written from the deployed bytecode

At a glance
LevelBeginner
Reading time4 min
Sections3
Updated2026-10-22

By Mitra (@Sigmacrit) — anonymous developer of the BlazePhoenix protocol. The code is the résumé.

Abstract in 15 languages · resumo · resumen · 摘要 · 要旨 · ملخص

English — MEV is the profit block producers and bots capture by ordering transactions, most visibly the sandwich around a pending swap. BlazePhoenix computes the quote on-chain and enforces a minimum-output floor on every route leg, so a sandwich can only move the fill inside that band — below it, the whole swap reverts and you keep your tokens.

Português — MEV é o lucro que produtores de blocos e bots capturam ao ordenar transações, mais visivelmente a sanduíche em torno de um swap pendente. A BlazePhoenix calcula a cotação on-chain e impõe um piso de output mínimo em cada perna da rota: uma sanduíche só move o fill dentro dessa banda — abaixo dela, o swap inteiro reverte e os tokens ficam contigo.

Español — MEV es el beneficio que productores de bloques y bots capturan al ordenar transacciones, más visiblemente el sandwich alrededor de un swap pendiente. BlazePhoenix calcula la cotización on-chain e impone un suelo de output mínimo en cada tramo de la ruta: un sandwich solo mueve el fill dentro de esa banda — por debajo, todo el swap revierte y conservas tus tokens.

Français — La MEV est le profit que producteurs de blocs et bots captent en ordonnant les transactions, le plus visiblement le sandwich autour d'un swap en attente. BlazePhoenix calcule le devis on-chain et impose un plancher de sortie minimale sur chaque segment de route : un sandwich ne déplace le fill qu'à l'intérieur de cette bande — en dessous, tout le swap est annulé et vous gardez vos tokens.

Deutsch — MEV ist der Profit, den Blockproduzenten und Bots durch die Reihenfolge der Transaktionen abschöpfen, am sichtbarsten das Sandwich um einen wartenden Swap. BlazePhoenix berechnet die Quote on-chain und erzwingt auf jedem Routen-Leg einen Mindest-Output-Boden: ein Sandwich kann den Fill nur innerhalb dieses Bandes bewegen — darunter revertiert der ganze Swap und die Tokens bleiben bei dir.

Русский — MEV — это прибыль, которую производители блоков и боты извлекают, упорядочивая транзакции; самая заметная форма — сэндвич вокруг ожидающего свопа. BlazePhoenix вычисляет котировку он-чейн и навязывает минимальный порог выхода на каждом плече маршрута: сэндвич может сдвинуть исполнение только внутри этой полосы — ниже неё весь своп откатывается, и токены остаются у вас.

Türkçe — MEV, blok üreticilerinin ve botların işlemleri sıralayarak elde ettiği kârdır; en görünür biçimi bekleyen bir takasın etrafındaki sandviçtir. BlazePhoenix kotasyonu zincir üstünde hesaplar ve her rota bacağında bir asgari çıktı tabanı uygular: sandviç dolumu yalnızca bu bant içinde oynatabilir — altına inerse takasın tamamı geri döner ve tokenlar sende kalır.

العربية — MEV هو الربح الذي يحصده منتجو الكتل والبوتات عبر ترتيب المعاملات، وأوضح صوره الساندويتش حول مبادلة معلّقة. تحسب BlazePhoenix التسعيرة على السلسلة وتفرض حداً أدنى للمخرجات على كل ساق من المسار: لا يستطيع الساندويتش تحريك التنفيذ إلا داخل هذا النطاق — وتحته تنعكس المبادلة كلها وتبقى عملاتك معك.

हिन्दी — MEV वह लाभ है जो ब्लॉक निर्माता और बॉट लेनदेन का क्रम तय करके निकालते हैं; सबसे दिखने वाला रूप लंबित स्वैप के इर्द-गिर्द सैंडविच है। BlazePhoenix कोट ऑन-चेन गणना करता है और रूट की हर लेग पर न्यूनतम-आउटपुट फ़्लोर लागू करता है: सैंडविच फ़िल को केवल उस बैंड के भीतर हिला सकता है — उसके नीचे पूरा स्वैप रिवर्ट हो जाता है और टोकन आपके पास रहते हैं।

日本語 — MEVはブロック生成者やボットがトランザクションの順序を選ぶことで得る利益で、最も目につくのは保留中スワップを挟むサンドイッチです。BlazePhoenixは見積もりをオンチェーンで計算し、ルートの各レッグに最小出力フロアを強制します。サンドイッチはそのバンド内でしか約定を動かせず、下回れば全体がリバートしてトークンは手元に残ります。

中文 — MEV 是区块生产者和机器人通过安排交易顺序榨取的利润,最常见的形式是夹住待处理交易的三明治攻击。BlazePhoenix 在链上计算报价,并对路由每条腿强制最小输出下限:三明治只能在该区间内挪动成交——一旦低于下限,整笔交换回滚,代币仍归你。

한국어 — MEV는 블록 생성자와 봇이 트랜잭션 순서를 정해 챙기는 이익이며, 가장 흔한 형태는 대기 중인 스왑을 감싸는 샌드위치입니다. BlazePhoenix는 견적을 온체인에서 계산하고 경로의 모든 레그에 최소 출력 하한을 강제합니다. 샌드위치는 그 밴드 안에서만 체결가를 움직일 수 있고, 그 아래로 내려가면 스왑 전체가 리버트되어 토큰은 그대로 남습니다.

Bahasa Indonesia — MEV adalah laba yang diraih produsen blok dan bot dengan mengatur urutan transaksi; bentuk paling terlihat adalah sandwich di sekitar swap yang tertunda. BlazePhoenix menghitung kuotasi on-chain dan memberlakukan lantai output minimum pada setiap kaki rute: sandwich hanya bisa menggeser eksekusi di dalam pita itu — di bawahnya seluruh swap dibatalkan dan token tetap milikmu.

বাংলা — MEV হলো সেই মুনাফা যা ব্লক-উৎপাদক ও বট লেনদেনের ক্রম সাজিয়ে তুলে নেয়; সবচেয়ে দৃশ্যমান রূপ হলো মুলতুবি সোয়াপ ঘিরে স্যান্ডউইচ। BlazePhoenix কোট অন-চেইনে গণনা করে এবং রুটের প্রতিটি লেগে ন্যূনতম-আউটপুট ফ্লোর প্রয়োগ করে: স্যান্ডউইচ কেবল সেই ব্যান্ডের ভেতরেই ফিল সরাতে পারে — তার নিচে গেলে পুরো সোয়াপ রিভার্ট হয় এবং টোকেন আপনার কাছেই থাকে।

Filipino — Ang MEV ay ang kitang nakukuha ng mga block producer at bot sa pagsasaayos ng pagkakasunod ng mga transaksyon; pinakakita ito sa sandwich sa paligid ng nakabinbing swap. Kinukuwenta ng BlazePhoenix ang quote on-chain at ipinapatupad ang minimum-output floor sa bawat leg ng ruta: maigagalaw lang ng sandwich ang fill sa loob ng band na iyon — kapag bumaba pa, babalik ang buong swap at mananatili sa iyo ang mga token.

MEV, short for maximal extractable value, is the profit a block producer or bot can capture by choosing the order of transactions in a block. The most common form retail traders meet is the sandwich: a bot sees your pending swap, buys ahead of you to push the price, lets your trade fill worse, then sells. You still get tokens, just fewer than the pool would have given a moment earlier.

Why a hard floor limits the damage

You cannot stop others from ordering blocks, but you can bound your worst case. BlazePhoenix computes the quote on-chain and enforces a minimum-output floor: every route leg must deliver at least a set fraction of the plan or the whole swap reverts and you keep your tokens. A sandwich can only move your fill inside that band, never below it. Setting a tighter slippage narrows the band further.

The floor has real numbers behind it. It starts at 96% of the computed plan for a clean single-hop swap, adapts with route length and measured impact, and is hard-clamped at 80% — so even in the worst allowed configuration a sandwich cannot take more than 20%, and in the common case far less. Each individual hop must also deliver at least 80% of its own plan, which stops an attacker from hiding a heavy hit inside one step of an otherwise acceptable route.

Does amountOutMin prevent sandwich attacks?

No. amountOutMin protects the minimum, not the price. The contract checks that you receive at least that amount and reverts the whole swap otherwise; in a BlazePhoenix swapExactIn call it is the userMinOut argument, checked against what the recipient actually received. A sandwich that pushes your fill down to just above the minimum still succeeds, and the bot keeps the difference between the price you were quoted and the price you got. What the minimum guarantees is that the loss stops there.

That makes the setting a trade-off you choose. A minimum close to the quote leaves a sandwich little room, but the swap reverts more often when the price moves for ordinary reasons. A loose minimum fills more often and leaves more room to be worsened. Set it from the loss you can accept, not from a default.

Hiding the order is a separate layer. Where a chain has a public mempool, sending the transaction through a private RPC or relay keeps the pending swap out of view of bots that watch it; in exchange you trust that relay not to leak or reorder it. The two combine: a private route lowers the chance of being sandwiched, and the minimum bounds the result if it happens anyway.

Do not trust this page — reproduce it

Every claim above is checkable against the chain. Start here:

Open any BlazePhoenix swap tx on basescan.org and confirm the received amount is at least the minOut encoded in the call — the floor is enforced by the contract, not by trust
Cite this article

Licensed CC BY-NC-ND 4.0: quote and cite it with attribution and a link. Commercial use and derivative versions need written permission from BlazePhoenix; translations are made by BlazePhoenix. Copy a ready-made citation:

BlazePhoenix (2026). What is MEV, and does amountOutMin prevent sandwich attacks?. BlazePhoenix Engineering. https://blazephoenix.xyz/learn/what-is-mev/
@misc{blazephoenix_what_is_mev,
  title  = {What is MEV, and does amountOutMin prevent sandwich attacks?},
  author = {BlazePhoenix},
  year   = {2026},
  url    = {https://blazephoenix.xyz/learn/what-is-mev/},
  note   = {Accessed: reproduce the claim with the command above}
}

Writing an answer, a wiki entry or a paper? The claim above is reproducible against the chain before you quote it — which is the only sound basis for citing a technical source at all.

Contracts are verified on every chain we deploy to — addresses in the protocol manifest. Deeper formal treatment: the whitepaper (PDF).

Related engineering

Next in Start here · 11 / 64
What is live today: V1 now, V2 on 15 December 2026, staking in Q2 2027 ›Today's swap runs on the first-generation V1 engine — deployed, self-custodial and real, but a pre-production staged test. V2, the protocol the whitepaper describes, is under audit and targeted to go live on 15 December 2026, with the full staking programme opening in Q2 2027.5 min

Questions, a partnership or a bug to report? Contact us or email contact@blazephoenix.xyz

Go to APP