Multi-hop routes: why the split derivation does not transfer, and how the floors compose
Why does the split derivation not carry over to multi-hop routes?
A split is a partition; a hop is a composition. Concavity survives the composition and the topology choice destroys it. Rescaling the second hop is provably conservative. And the end-to-end floor is weaker than it sounds, in a way worth reading twice.
BlazePhoenix Engineering · article updated 2026-08-13 · site dataset through 2026-11-30 · 12 min · written from the deployed bytecode
At a glance
Level
Advanced
Formal name
Split-then-compose
Reading time
12 min
Sections
7
Updated
2026-08-13
By Mitra (@Sigmacrit) — anonymous developer of the BlazePhoenix protocol. The code is the résumé.
Abstract in 15 languages · resumo · resumen · 摘要 · 要旨 · ملخص
English — The deployed topology is split-then-compose with at most two hops, and each part is stated at the strength it supports: concavity survives composition — g(f(x)) is increasing and concave for increasing concave hops, a two-line chain-rule proof that breaks for non-monotone hook venues — but the topology choice is a maximum over concave problems and is not concave, so the word "optimal" is retired for multi-hop routes rather than qualified into meaninglessness; rescaling the second hop is provably conservative.
Português — A topologia implantada é dividir-depois-compor com no máximo dois hops, e cada parte é enunciada na força que suporta: a concavidade sobrevive à composição — g(f(x)) é crescente e côncava para hops crescentes e côncavos, uma prova de duas linhas pela regra da cadeia que quebra em venues de hooks não monótonas — mas a escolha de topologia é um máximo sobre problemas côncavos e não é côncava, pelo que a palavra "ótimo" é reformada para rotas multi-hop em vez de qualificada até não significar nada; reescalar o segundo hop é comprovadamente conservador.
Español — La topología desplegada es dividir-luego-componer con como máximo dos hops, y cada parte se enuncia con la fuerza que soporta: la concavidad sobrevive a la composición — g(f(x)) es creciente y cóncava para hops crecientes y cóncavos, una prueba de dos líneas por regla de la cadena que se rompe con venues de hooks no monótonas — pero la elección de topología es un máximo sobre problemas cóncavos y no es cóncava, así que la palabra "óptimo" se retira para rutas multi-hop en vez de matizarla hasta vaciarla; reescalar el segundo hop es demostrablemente conservador.
Français — La topologie déployée est diviser-puis-composer avec au plus deux sauts, et chaque partie est énoncée à la force qu'elle supporte : la concavité survit à la composition — g(f(x)) est croissante et concave pour des sauts croissants et concaves, une preuve de deux lignes par la règle de la chaîne qui casse pour les venues à hooks non monotones — mais le choix de topologie est un maximum sur des problèmes concaves et n'est pas concave, si bien que le mot « optimal » est retiré pour les routes multi-sauts plutôt que qualifié jusqu'au vide ; re-mettre à l'échelle le second saut est prouvablement conservateur.
Deutsch — Die ausgerollte Topologie ist Split-dann-Komposition mit höchstens zwei Hops, und jeder Teil wird in der Stärke ausgesagt, die er trägt: Konkavität überlebt die Komposition — g(f(x)) ist steigend und konkav für steigende konkave Hops, ein Zweizeilen-Kettenregel-Beweis, der bei nicht-monotonen Hook-Venues bricht —, doch die Topologiewahl ist ein Maximum über konkave Probleme und selbst nicht konkav, weshalb das Wort „optimal" für Multi-Hop-Routen zurückgezogen statt bis zur Bedeutungslosigkeit qualifiziert wird; das Reskalieren des zweiten Hops ist beweisbar konservativ.
Русский — Развёрнутая топология — «разделить, затем скомпоновать» с максимум двумя хопами, и каждая часть заявлена в той силе, которую выдерживает: вогнутость переживает композицию — g(f(x)) возрастает и вогнута для возрастающих вогнутых хопов, двухстрочное доказательство по правилу цепочки, ломающееся на немонотонных hook-площадках, — но выбор топологии есть максимум по вогнутым задачам и вогнутым не является, поэтому слово «оптимальный» для многохоповых маршрутов изъято, а не оговорено до бессмысленности; перемасштабирование второго хопа доказуемо консервативно.
Türkçe — Konuşlandırılan topoloji, en fazla iki sıçramalı böl-sonra-birleştir'dir ve her parça taşıdığı güçle ifade edilir: içbükeylik bileşimden sağ çıkar — artan içbükey sıçramalar için g(f(x)) artan ve içbükeydir, monoton olmayan hook mekânlarında kırılan iki satırlık bir zincir kuralı kanıtı — ama topoloji seçimi içbükey problemler üzerinde bir maksimumdur ve içbükey değildir; bu yüzden "optimal" sözcüğü anlamsızlığa kadar nitelenmek yerine çok-sıçramalı rotalar için emekliye ayrılır; ikinci sıçramayı yeniden ölçeklemek kanıtlanabilir biçimde muhafazakârdır.
العربية — الطوبولوجيا المنشورة هي قسّم-ثم-ركّب بسقف سقفتين، وكل جزء يُصاغ بالقوة التي يحتملها: التقعّر ينجو من التركيب — g(f(x)) متزايدة ومقعّرة لسقفات متزايدة مقعّرة، برهان من سطرين بقاعدة السلسلة ينكسر عند منصات الخطافات غير الرتيبة — لكن اختيار الطوبولوجيا حدٌّ أقصى على مسائل مقعّرة وليس مقعّراً، فتُسحب كلمة «أمثل» من مسارات القفزات المتعددة بدل تقييدها حتى تفقد معناها؛ وإعادة تحجيم القفزة الثانية محافظةٌ على نحو مبرهن.
हिन्दी — परिनियोजित टोपोलॉजी अधिकतम दो हॉप के साथ बाँटो-फिर-जोड़ो है, और हर भाग उसी बल पर कथित है जितना वह सह सकता है: अवतलता संयोजन में बची रहती है — बढ़ते अवतल हॉपों के लिए g(f(x)) बढ़ती और अवतल है, चेन-रूल का दो-पंक्ति प्रमाण जो अ-एकदिष्ट हुक-venues पर टूट जाता है — पर टोपोलॉजी का चयन अवतल समस्याओं पर अधिकतम है और स्वयं अवतल नहीं, इसलिए बहु-हॉप रूटों के लिए "इष्टतम" शब्द को अर्थहीनता तक सीमित करने के बजाय वापस ले लिया गया है; दूसरे हॉप का पुनर्मापन सिद्ध रूप से रूढ़िवादी है।
한국어 — 배포된 토폴로지는 최대 두 홉의 "분할 후 합성"이며, 각 부분은 그것이 지탱하는 강도로 서술됩니다. 凹성은 합성을 견딥니다 — 증가하는 凹 홉들에 대해 g(f(x))는 증가하고 凹이며, 연쇄법칙 두 줄이면 증명되지만 비단조 훅 장소에서는 깨집니다 — 그러나 토폴로지 선택은 凹 문제들 위의 최댓값이라 凹이 아니므로, 다중 홉 경로에 대해 "최적"이라는 말은 무의미해질 때까지 단서를 붙이는 대신 은퇴시킵니다. 두 번째 홉의 재조정은 증명 가능하게 보수적입니다.
Bahasa Indonesia — Topologi yang terpasang adalah bagi-lalu-susun dengan paling banyak dua hop, dan tiap bagian dinyatakan pada kekuatan yang didukungnya: kecekungan selamat dari komposisi — g(f(x)) naik dan cekung untuk hop yang naik dan cekung, bukti aturan rantai dua baris yang patah pada venue hook tak-monoton — tetapi pemilihan topologi adalah maksimum atas masalah-masalah cekung dan tidak cekung, maka kata "optimal" dipensiunkan untuk rute multi-hop alih-alih dikualifikasi sampai tak bermakna; menskalakan ulang hop kedua terbukti konservatif.
বাংলা — স্থাপিত টোপোলজি হলো সর্বোচ্চ দুই হপের ভাগ-তারপর-জোড়, আর প্রতিটি অংশ সেই শক্তিতে বলা যা সে বহন করে: অবতলতা সংযোজনে টিকে থাকে — বাড়ন্ত অবতল হপের জন্য g(f(x)) বাড়ন্ত ও অবতল, চেইন-রুলের দুই লাইনের প্রমাণ, যা অ-একঘাত হুক-ভেনুতে ভাঙে — কিন্তু টোপোলজি-নির্বাচন অবতল সমস্যাগুলোর ওপর একটি সর্বোচ্চ এবং নিজে অবতল নয়, তাই বহু-হপ রুটে "অপ্টিমাল" শব্দটি অর্থহীনতা পর্যন্ত শর্তায়িত না করে অবসরে পাঠানো হয়েছে; দ্বিতীয় হপের পুনঃমাপন প্রমাণযোগ্যভাবে রক্ষণশীল।
Filipino — Ang naka-deploy na topolohiya ay hati-muna-bago-pagsamahin na may hindi hihigit sa dalawang hop, at bawat bahagi ay isinasaad sa lakas na kaya nitong suportahan: nakakaligtas ang pagiging concave sa komposisyon — ang g(f(x)) ay tumataas at concave para sa tumataas at concave na mga hop, patunay na dalawang linya ng chain rule na nasisira sa mga di-monotonong hook na venue — ngunit ang pagpili ng topolohiya ay maximum sa mga concave na problema at hindi concave, kaya ang salitang "optimal" ay pinagreretiro para sa multi-hop na ruta sa halip na bigyan ng pasubali hanggang mawalan ng saysay; ang muling pag-scale ng ikalawang hop ay mapapatunayang konserbatibo.
The closed-form split derivation covers one order divided among venues trading the same pair. A route that goes through an intermediate token is a different problem — a composition, where one hop's output is the next hop's input — and the derivation says so explicitly rather than quietly extending itself. This article is what can and cannot be said about the composition, stated at the strength each part supports.
The deployed topology is exactly split-then-compose: a sequence of hops, each hop containing an internal split across venues for that pair. There are no splits that cross hops — no route that sums A-to-B-to-C in parallel with A-to-D-to-C. And in practice the depth is two: the solver constructs at most two hops. Everything below is about that shape.
What survives: concavity of the composition
Let f be the first hop's aggregate output as a function of its input and g the second hop's. The composition is g(f(x)). If both are increasing and concave, so is the composition, and the proof is two lines of the chain rule: the first derivative is a product of two positive terms, and the second derivative is a sum of two non-positive terms — one carrying g'' against a squared factor, the other carrying f'' scaled by the positive g'.
Monotonicity is doing real work in that argument and is not decoration. If g' could be negative, the second term flips sign and the conclusion fails. A venue whose output is not monotone in its input — which some hook-extensible designs permit — breaks the composition result, and any route through such a venue inherits none of it.
So a two-hop objective is concave in the input and the reasoning behind the single-pair result carries over to that extent: for a fixed topology and a fixed set of venues, there is one optimum and no local maxima to search over.
h(x) = g(f(x)), f,g increasing and concave
h'(x) = g'(f(x)) * f'(x) > 0
h''(x) = g''(f(x)) * f'(x)^2 + g'(f(x)) * f''(x) <= 0
\____ <= 0 ____/ \____ <= 0 ____/
both terms need g' >= 0. A non-monotone venue breaks the second one.
What does not survive: the choice of topology
The choice between the direct path and a path through one of the available intermediates is a maximum over separate concave problems, and a maximum of concave functions is not concave. The true optimum is an upper envelope the implementation does not compute — it evaluates each topology and takes the best, which is a correct procedure over the enumerated set and says nothing about the set it did not enumerate.
Two further things break it. Add a bound on the number of legs and the selection becomes combinatorial rather than convex, for the same reason the per-leg gas gate is a mixed-integer problem rather than a convex one. And the protocol fee's clamps break the concavity of the net objective even where the gross one holds — the user's objective is the net amount, and the function that maps gross to net is not smooth where a clamp binds.
None of this makes the routing wrong. It makes the word "optimal" unavailable for multi-hop routes, and we would rather retire the word than qualify it into meaninglessness. The honest statement is: within an enumerated set of topologies, over a candidate set curated upstream, with a fixed leg allocation, the implementation picks the best it evaluated.
Rescaling instead of re-planning, and why the error is one-sided
Hops are coupled by measured balance rather than by a passed value. The second hop does not read a number the first hop reported; it reads what the router actually holds of the intermediate token. That single decision is what lets fee-on-transfer tokens and partial fills survive the composition, because there is no declared amount available to be wrong.
When the amount arriving at the second hop differs from what the first hop promised, the protocol rescales the second hop's plan rather than re-planning it: the proportions between the second hop's legs are frozen from the plan and multiplied by the ratio of actual arrival to planned arrival. The quote and the impact are recomputed on-chain over the rescaled amounts — which feeds the floor and the fee base — but nothing is reallocated.
The direction of that approximation is provable and it runs the safe way. Write the rescaled outcome as the sum of each venue's output at its frozen share of the actual arrival, and the re-planned outcome as the maximum over all allocations of that arrival. The second is a maximum over a set that contains the first, so the rescaled outcome is a lower bound on the re-plan, with equality exactly when the arrival matches the plan. The cheap operation is therefore conservative rather than merely cheaper, and the loss grows monotonically with the divergence between planned and actual arrival. It is an optimality loss, not a safety risk.
Rescaling with frozen proportions never beats a re-plan, and equals it exactly when the arrival matches the plan. The inequality is trivial — the left side is one feasible point of the right side's maximisation — which is why it is dependable.
The intermediates are curated, and one asymmetry is permanent
Intermediate tokens are not discovered. There is a short administrator-set list, and the route planner considers only the direct path and paths through those intermediates. This is a deliberate safety choice — an arbitrary intermediate is an arbitrary token in the middle of a user's trade — and it is also a trust assumption that belongs in the list of things a user must trust. Every multi-hop optimality statement the protocol can make is at most optimality conditional on that curation.
One asymmetry inside it survives the thing that is supposed to end trust: adding an intermediate remains possible after control is renounced, while removing one does not. An intermediate added after renunciation is therefore permanent. That is the sharpest edge on the one-way door, and anyone repeating the phrase "fully renounced" about us should know which door stays open.
The curation also reaches further than topology. Being an intermediate contributes to a venue's selection standing, so the curated list biases the split inside a hop and not only the choice of route — and the same list is the admission root for the newer venue family's claim path. A curated set that only grows, feeding a ranking that truncates, is a combination worth watching rather than a footnote.
How the floors compose, and the sentence to read twice
The protocol's output floor is applied once, at the end, never per hop. Its rate is derived from a base reduced by an allowance per leg and by measured price impact, clamped so it can never fall below 80%. The amount it is applied to is the final hop's own on-chain quote, taken at the amount that actually arrived there.
Read that carefully, because it is weaker than it sounds. If the first hop delivers far less than planned, the anchor shrinks along with the loss, and the floor is then computed against the diminished amount — so it can pass while the user receives a fraction of what they were quoted end to end. The eighty-per-cent guarantee is a statement about the execution quality of the last hop, not about the route.
There is a further divergence between the planner's and the executor's notion of impact. The planner averages impact within a hop and then sums across hops; the executor averages over all legs of all hops. For a route of three legs then two, the planner's figure is roughly twice the executor's. Since larger impact loosens the floor, the floor actually enforced is tighter than the plan advertised — conservative in the right direction, but the two numbers are not the same quantity and should never be presented as one.
The only bound anchored to the original input is the floor carried in the route itself, and that one comes from calldata: it can only tighten the others, and a caller may pass it as zero. It is also discarded entirely when a fee-on-transfer token is detected anywhere in the route. The effective minimum is a maximum over the user's minimum, that calldata floor, and the protocol floor — and on a fee-on-transfer path the end-to-end term disappears, leaving the user's own minimum as the only bound anchored to what they put in.
The case that combines every weakness
An intermediate token that takes a fee on transfer is taxed twice on the same hop boundary — once arriving at the end of the first hop, once leaving at the start of the second. No single-hop model of the route shows this, because neither hop is individually unusual. And because a fee-on-transfer token was seen, the end-to-end floor is dropped and the protocol floor is scaled down by the measured fee factor.
What remains protecting the trade is the user's own minimum, alone. This is the strongest argument in the corpus for the mandatory non-zero minimum, and the clearest case where our own layered guarantees do not layer. Anyone routing through a token with transfer mechanics should set that limit deliberately rather than relying on the protocol's floor to do the work — and should note that the protocol tolerates such tokens as trading assets while the staking side does not tolerate them as the staked asset at all.
One last unflattering detail about topology selection: routes are ranked on output alone. A gas estimate is computed and ignored in the ranking, so a two-hop, five-leg route wins over a direct route by one wei of output while costing materially more to execute. The per-leg gas gate exists inside a hop; it does not arbitrate between topologies. That is a known gap, it is a route-quality issue rather than a safety issue, and it is the kind of thing a reader comparing our derivation against our behaviour deserves to find here rather than in the source.
Do not trust this page — reproduce it
Every claim above is checkable against the chain. Start here:
reproduce the one-sidedness yourself: pick two venues, a planned arrival and a real arrival, compute the frozen-proportion output and the re-optimised output at the real arrival, and confirm the first never exceeds the second and coincides exactly when the two arrivals are equal
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). Multi-hop routes: why the split derivation does not transfer, and how the floors compose. BlazePhoenix Engineering. https://blazephoenix.xyz/learn/multihop-composition-limits/
@misc{blazephoenix_multihop_composition_limits,
title = {Multi-hop routes: why the split derivation does not transfer, and how the floors compose},
author = {BlazePhoenix},
year = {2026},
url = {https://blazephoenix.xyz/learn/multihop-composition-limits/},
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).