Launch app
Cover: Your floor and the protocol's floor

Your floor and the protocol's floor

If I set my minimum too low, what protects me?

A swap has two minimums: the one you choose and the one the protocol computes itself. The higher of the two applies, and the protocol floor never falls below 80 % of its reference.

BlazePhoenix Engineering · article updated 2026-11-16 · site dataset through 2026-11-30 · 5 min · written from the deployed bytecode

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

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

English — A swap has two minimums: the one you choose and the one the protocol computes itself, and the higher one applies. If you set yours too low, the protocol floor still refuses a delivery that lands far from the price measured in the same transaction, and it never falls below 80 % of its reference.

Português — Um swap tem dois mínimos: o que escolhe e o que o protocolo calcula por si, e aplica-se o mais alto. Se definir o seu demasiado baixo, o piso do protocolo continua a recusar uma entrega que fique longe do preço medido na mesma transação, e nunca desce abaixo de 80 % da sua referência.

Español — Un swap tiene dos mínimos: el que eliges y el que calcula el propio protocolo, y se aplica el más alto. Si fijas el tuyo demasiado bajo, el suelo del protocolo sigue rechazando una entrega que quede lejos del precio medido en la misma transacción, y nunca baja del 80 % de su referencia.

Français — Un swap a deux minimums : celui que vous choisissez et celui que le protocole calcule lui-même, et c'est le plus élevé qui s'applique. Si vous fixez le vôtre trop bas, le plancher du protocole refuse tout de même une livraison qui s'éloigne du prix mesuré dans la même transaction, et il ne tombe jamais sous 80 % de sa référence.

Deutsch — Ein Swap hat zwei Minima: das, das Sie wählen, und das, das das Protokoll selbst berechnet; es gilt das höhere. Setzen Sie Ihres zu niedrig an, weist der Protokoll-Floor eine Lieferung trotzdem zurück, die weit vom in derselben Transaktion gemessenen Preis landet, und er fällt nie unter 80 % seiner Referenz.

Русский — У свопа два минимума: тот, что выбираете вы, и тот, что протокол вычисляет сам; применяется более высокий. Если вы задали свой слишком низким, нижняя граница протокола всё равно отклонит поставку, которая оказалась далеко от цены, измеренной в той же транзакции, и она никогда не опускается ниже 80 % от своей опорной величины.

Türkçe — Bir takasın iki minimumu vardır: sizin seçtiğiniz ve protokolün kendisinin hesapladığı; hangisi yüksekse o geçerli olur. Kendinizinkini çok düşük belirlerseniz bile protokol tabanı, aynı işlemde ölçülen fiyattan çok uzağa düşen bir teslimatı yine reddeder ve referansının %80'inin altına asla inmez.

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

हिन्दी — एक स्वैप में दो न्यूनतम होते हैं: जो आप चुनते हैं और जो प्रोटोकॉल ख़ुद निकालता है, और जो ऊँचा होता है वही लागू होता है। अगर आपने अपना बहुत कम रखा हो, तब भी प्रोटोकॉल फ़्लोर उस डिलीवरी को अस्वीकार करता है जो उसी ट्रांज़ैक्शन में मापी गई क़ीमत से बहुत दूर पड़ती है, और वह अपने संदर्भ के 80 % से नीचे कभी नहीं जाता।

日本語 — スワップには二つの最小値がある。自分で選ぶものと、プロトコルが自ら計算するものだ。適用されるのは高いほうである。自分の値を低く設定しすぎても、プロトコルフロアは、同じトランザクション内で測定された価格から大きく離れた受け取りを拒否し、その基準値の 80 % を下回ることはない。

中文 — 一笔兑换有两个最低值:你自己选的,和协议自己算出的,两者中较高的那个生效。即使你把自己的设得过低,协议下限仍会拒绝与同一笔交易中测得价格相差很远的到账,并且它不会低于其参考值的 80 %。

한국어 — 스왑에는 두 개의 최소값이 있습니다. 직접 정하는 값과 프로토콜이 스스로 계산하는 값이며, 둘 중 더 높은 쪽이 적용됩니다. 직접 정한 값을 너무 낮게 잡더라도 프로토콜 하한은 같은 트랜잭션에서 측정된 가격에서 크게 벗어난 수령을 여전히 거부하며, 기준값의 80 % 아래로는 내려가지 않습니다.

Bahasa Indonesia — Sebuah swap memiliki dua minimum: yang Anda pilih dan yang dihitung protokol sendiri, dan yang lebih tinggi yang berlaku. Jika Anda menetapkan milik Anda terlalu rendah, batas bawah protokol tetap menolak pengiriman yang jatuh jauh dari harga yang diukur dalam transaksi yang sama, dan tidak pernah turun di bawah 80 % dari acuannya.

বাংলা — একটি সোয়াপে দুটি ন্যূনতম থাকে: যেটি আপনি বেছে নেন এবং যেটি প্রোটোকল নিজে হিসাব করে, আর উচ্চতরটিই প্রযোজ্য হয়। আপনি নিজেরটি খুব কম রাখলেও প্রোটোকল ফ্লোর সেই ডেলিভারি প্রত্যাখ্যান করে যা একই ট্রানজ্যাকশনে মাপা দাম থেকে অনেক দূরে পড়ে, এবং সেটি তার রেফারেন্সের ৮০ %-এর নিচে কখনো নামে না।

Filipino — May dalawang minimum ang isang swap: ang pinipili mo at ang kinukuwenta mismo ng protocol, at ang mas mataas ang nasusunod. Kung masyadong mababa ang itinakda mo, tinatanggihan pa rin ng protocol floor ang delivery na lumalapag nang malayo sa presyong nasukat sa parehong transaksyon, at hindi ito kailanman bumababa sa 80 % ng reference nito.

There are two minimums on a swap: the one you choose and the one the protocol computes for itself. The higher one is the one that applies. If you set yours too low, the protocol floor still refuses a delivery that lands far from the price measured in the same transaction (Whitepaper 2.4 §11.5).

Think of a door with two locks. You can fit your own lock, and the building fits its own as well. To get through, you must pass the stronger of the two, and nobody can remove the building lock from the outside.

How the protocol floor is built

It is a retention fraction, counted in basis points (one basis point is 0.01 %). Three constants decide it (Whitepaper 2.4 §11.5).

ConstantValueWhat it means
Base9,600 bpsA clean single-leg swap must keep 96 % of its reference
Per extra leg200 bpsThe floor loosens by this much for each effective extra leg
Hard limit2,000 bps of lossThe floor never falls below 8,000 bps, which is 80 %

Source: Whitepaper 2.4 §11.5; FLOOR_BASE_BPS, FLOOR_PER_LEG_BPS and FLOOR_HARD_MAX_LOSS_BPS in BlazePhoenixCore.sol at 969bcc6

A worked case

Whitepaper 2.4 §11.5, Worked example 3, takes a two-hop route whose last hop quotes 1,000.000 B in the same transaction. The protocol floor works out at 93.36 %, so 933.600 B.

Your minimumWhich floor bindsDeliveryResult
990 BYours, at 990 B998.4 BSettles
990 BYours, at 990 B985 BRefused
900 BThe protocol's, at 933.6 B930 BRefused, even though it clears your 900 B

Source: Whitepaper 2.4 §11.5, Worked example 3

What the floor is, and is not

Anything you pass in can tighten the protection and never loosen it (Whitepaper 2.4 §11.5). The floor is a limit on how far a delivery may land from the in-transaction reference. It is not a promise about the price of a token.

Your own minimum is still the one protection whose quality depends only on you, so set it every time (Whitepaper 2.4 §22).

How to look at it yourself

  1. Open the V2 source at commit 969bcc6 and read BlazePhoenixCore.sol, lines 400 to 408, where the constants sit.
  2. Check the arithmetic of Worked example 3: 9,600 minus 184 minus 80 gives 9,336, and 1,000 times 9,336 over 10,000 is 933.6.
  3. Run the test that shows a swap with a zero minimum is refused: test/A1EveryValueDoorRefusesZeroMinOut.t.sol.

Do not trust this page — reproduce it

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

Read lines 400 to 408 of src/BlazePhoenixCore.sol at commit 969bcc6 and confirm the three constants 9600, 200 and 2000. Then compute 9600 - 184 - 80 = 9336 and 1000 x 9336 / 10000 = 933.6.
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). Your floor and the protocol's floor. BlazePhoenix Engineering. https://blazephoenix.xyz/learn/your-floor-and-the-protocols-floor/
@misc{blazephoenix_your_floor_and_the_protocols_floor,
  title  = {Your floor and the protocol's floor},
  author = {BlazePhoenix},
  year   = {2026},
  url    = {https://blazephoenix.xyz/learn/your-floor-and-the-protocols-floor/},
  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 · 7 / 64
What is a honeypot token? The coin you can buy but never sell ›A honeypot is a token engineered so buys succeed and sells fail. How the trap works, the tell-tale signs, and the on-chain check worth running before you buy.4 min

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

Go to APP