Connect
Cover: Claimed versus measured: every clamp takes the measurement

Claimed versus measured: every clamp takes the measurement

When the caller and the chain give different numbers, which one decides?

The router's floors and caps are each a minimum or a maximum between a claimed value and a measured one, and the operator is chosen so the measurement wins. Four clamps, side by side.

Known formally as The measurement wins in the BlazePhoenix whitepaper.

BlazePhoenix Engineering · article updated 2026-11-16 · site dataset through 2026-11-19 · 6 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 — The chain decides. Each of the router's floors and caps is a minimum or a maximum between a claimed value and a measured one, and the operator is chosen per limit so that the measured value binds: a maximum on a floor, a minimum on a capacity cap. The direction changes, the winner does not.

Português — Quem decide é a cadeia. Cada piso e cada limite do router é um mínimo ou um máximo entre um valor alegado e um valor medido, e o operador é escolhido para cada limite de modo a que o valor medido seja o que vincula: um máximo num piso, um mínimo num limite de capacidade. A direção muda, o vencedor não.

Español — Decide la cadena. Cada suelo y cada tope del router es un mínimo o un máximo entre un valor declarado y uno medido, y el operador se elige para cada límite de modo que ate el valor medido: un máximo en un suelo, un mínimo en un tope de capacidad. La dirección cambia, el ganador no.

Français — C'est la chaîne qui décide. Chaque plancher et chaque plafond du routeur est un minimum ou un maximum entre une valeur déclarée et une valeur mesurée, et l'opérateur est choisi pour chaque limite de sorte que la valeur mesurée soit celle qui s'applique : un maximum sur un plancher, un minimum sur un plafond de capacité. La direction change, le gagnant non.

Deutsch — Die Chain entscheidet. Jeder Floor und jede Obergrenze des Routers ist ein Minimum oder ein Maximum zwischen einem behaupteten und einem gemessenen Wert, und der Operator wird je Grenze so gewählt, dass der gemessene Wert bindet: ein Maximum bei einem Floor, ein Minimum bei einer Kapazitätsgrenze. Die Richtung wechselt, der Gewinner nicht.

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

Türkçe — Zincir karar verir. Router'ın her taban ve tavan sınırı, beyan edilen değerle ölçülen değer arasında bir minimum ya da maksimumdur ve operatör her sınır için ölçülen değeri bağlayıcı kılacak şekilde seçilir: tabanda maksimum, kapasite tavanında minimum. Yön değişir, kazanan değişmez.

العربية — السلسلة هي التي تقرّر. كل أرضية وكل سقف في الـ router هو أدنى أو أعلى بين قيمة مُدّعاة وقيمة مقيسة، ويُختار المعامل لكل حدّ بحيث تكون القيمة المقيسة هي الملزِمة: أعلى (max) عند الأرضية وأدنى (min) عند سقف السعة. يتغير الاتجاه ولا يتغير الفائز.

हिन्दी — चेन तय करती है। router का हर फ़्लोर और हर कैप दावा किए गए और मापे गए मान के बीच का न्यूनतम या अधिकतम है, और ऑपरेटर हर सीमा के लिए ऐसे चुना जाता है कि मापा गया मान ही बाध्यकारी रहे: फ़्लोर पर अधिकतम, क्षमता कैप पर न्यूनतम। दिशा बदलती है, विजेता नहीं।

日本語 — 決めるのはチェーンだ。router の各フロアと各上限は、主張された値と測定された値のあいだの最小または最大であり、演算子は上限・下限ごとに、測定値が効力を持つように選ばれる。フロアでは最大、容量の上限では最小である。向きは変わるが、勝つのは変わらず測定値だ。

中文 — 由链来决定。router 的每个下限和上限,都是在声称值与测量值之间取最小或最大,并且针对每个限制选择运算符,使测量值起约束作用:下限用最大值,容量上限用最小值。方向会变,胜出的始终是测量值。

한국어 — 결정하는 것은 체인입니다. router의 각 하한과 상한은 주장된 값과 측정된 값 사이의 최솟값 또는 최댓값이며, 연산자는 한도마다 측정된 값이 구속력을 갖도록 선택됩니다. 하한에는 최댓값, 용량 상한에는 최솟값을 씁니다. 방향은 바뀌어도 이기는 쪽은 바뀌지 않습니다.

Bahasa Indonesia — Rantai yang menentukan. Setiap batas bawah dan batas atas router adalah minimum atau maksimum antara nilai yang diklaim dan nilai yang diukur, dan operatornya dipilih untuk setiap batas agar nilai yang diukur yang mengikat: maksimum pada batas bawah, minimum pada batas kapasitas. Arahnya berubah, pemenangnya tidak.

বাংলা — চেইনই সিদ্ধান্ত নেয়। router-এর প্রতিটি ফ্লোর ও ক্যাপ হলো দাবি করা মান আর মাপা মানের মধ্যে একটি ন্যূনতম বা সর্বাধিক, এবং প্রতিটি সীমার জন্য অপারেটর এমনভাবে বাছা হয় যাতে মাপা মানটিই কার্যকর হয়: ফ্লোরে সর্বাধিক, ক্ষমতার ক্যাপে ন্যূনতম। দিক বদলায়, বিজয়ী বদলায় না।

Filipino — Ang chain ang nagpapasya. Ang bawat floor at cap ng router ay isang minimum o maximum sa pagitan ng inaangking halaga at nasukat na halaga, at pinipili ang operator para sa bawat limitasyon upang ang nasukat na halaga ang masunod: maximum sa isang floor, minimum sa isang capacity cap. Nagbabago ang direksyon, hindi ang nananalo.

The short answer

The chain decides. The router's floors and caps are each a minimum or a maximum between what was claimed and what was measured, and the operator is chosen per limit so that the measured value is the one that binds. On a floor that operator is a maximum; on a capacity cap it is a minimum. The direction changes, the winner does not.

Why the operator is not always min

On a floor, min(claimed, measured) with a deflated claim returns the deflated figure and relaxes the floor. That is the attack a maximum closes. On a promise (how much a pool can deliver), the opposite holds: a claim above what the pool has ever held must be cut down to the measurement. So the same principle needs a maximum in one place and a minimum in the other.

Four clamps, side by side

ClampClaimedMeasuredOperator and constantWhere
Per-leg floorThe leg's attested quoteThe quote computed in the same framemax(attested, floor(q * 5000 / 10000)); LEG_FLOOR_BPS 8000 on the resultCore 400-408; whitepaper 11.3
Protocol floorThe caller's minimumThe floor derived from measured impactDelivered is at least max(F, userMinOut); FLOOR_HARD_MAX_LOSS_BPS 2000, so the floor is at least 80 %Core 400-408; whitepaper 2.4
Capacity clampThe promised output of a concentrated legThe pool's real output-token balanceCut to MAX_CONC_DRAIN_BPS 3000 (30 %) of the measured balanceWhitepaper 10
Quote safety marginThe assumed fee on a constant-product legThe legs actually plannedmin(max(0, n - 2) + 5a, 10) basis pointsQuoter 146-148, 172

Source: Project facts sheet 2026-11-16; whitepaper 2.4 sections 2.4, 10, 11.3 and 12 (DEX 969bcc6)

The capacity clamp, in one sentence

The single-tick concentrated-liquidity formula models the current tick's liquidity as if it spanned every price, so on a thin pool it can promise far more than the pool holds (117 times more in one observed case). A concentrated leg on a pool-shaped venue is therefore clamped to 30 % of the pool's measured real output-token balance. The clamp does not reach V4 legs, where the singleton holds every pool's tokens in one balance; the floor is that leg's bound.

The quote margin, read as a formula

In the Quoter, n is the leg count and a the number of constant-product legs priced on an assumed fee. The terms are BASE_SAFETY_BPS 0, PER_LEG_SAFETY 1, ASSUMED_FEE_SAFETY 5, under one shared cap SAFETY_CAP_BPS of 10. A buffer without a ceiling stops being a buffer and becomes a floor, so the cap is part of the rule.

s = min( max(0, n - 2) + 5a , 10 )  basis points

Check it yourself

  1. Read the floor constants at src/BlazePhoenixCore.sol, lines 400 to 408: FLOOR_HARD_MAX_LOSS_BPS, FLOOR_BASE_BPS, FLOOR_PER_LEG_BPS, LEG_FLOOR_BPS and MIN_QUOTE_COVERAGE_BPS.
  2. Read the Quoter constants at src/BlazePhoenixQuoter.sol, lines 146 to 148 and 172.
  3. Read the capacity clamp in section 10 of the whitepaper and find MAX_CONC_DRAIN_BPS in the source.
  4. For each clamp, write down which of claimed and measured is the operand the operator keeps.

Do not trust this page — reproduce it

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

In a clean checkout of Blaze-Phoenix-Dex at 969bcc6: sed -n 400,408p src/BlazePhoenixCore.sol; sed -n 146,148p src/BlazePhoenixQuoter.sol; sed -n 172p src/BlazePhoenixQuoter.sol; git grep -n "MAX_CONC_DRAIN_BPS". Whitepaper 2.4: sections 10 (capacity clamp), 11.3 (floors) and 12 (Quoter margins).
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). Claimed versus measured: every clamp takes the measurement. BlazePhoenix Engineering. https://blazephoenix.xyz/learn/claimed-versus-measured/
@misc{blazephoenix_claimed_versus_measured,
  title  = {Claimed versus measured: every clamp takes the measurement},
  author = {BlazePhoenix},
  year   = {2026},
  url    = {https://blazephoenix.xyz/learn/claimed-versus-measured/},
  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 Adversarial robustness · 2 / 5
The authentic callback: the Router checks a committed pool, not a derived address ›A V3-shaped pool asks to be paid from inside its own swap. The Router answers only to the pool it committed to just before the call, only up to the leg's input, and only once. CREATE2 belongs to discovery, not to this check.8 min

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

Go to APP