A swap can reach the Router two ways. It can arrive with the route already solved, carried in calldata; or it can ask the Router to solve on chain, with swapBestExactIn, paying computation instead of bytes. Which is cheaper depends on the chain — on what a byte of calldata costs against what a unit of execution costs.

The byte–gas exchange rate ρ*: when to solve on-chain and when to carry the route in calldata
Every chain prices bytes and computation differently. BlazePhoenix measured the exchange rate between them — ρ* of 66.9 to 105.5 gas per byte by route shape — and turned the Router's four doors into the affine cost model that picks the cheaper one.
Known formally as I-15 · The byte–gas exchange rate ρ* (E22) in the BlazePhoenix whitepaper.
BlazePhoenix Engineering · article updated 2026-09-24 · site dataset through 2026-12-02 · 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 measured exchange rate between calldata bytes and execution gas — ρ* of 66.9 to 105.5 gas per byte by route shape — and how the Router’s four doors turn it into a rule that picks the cheaper way to swap on every chain.
Português — A taxa de câmbio medida entre bytes de calldata e gas de execução — ρ* de 66.9 a 105.5 gas por byte conforme a forma da rota — e como as quatro portas do Router a transformam numa regra que escolhe a forma mais barata de trocar em cada chain.
Español — El tipo de cambio medido entre bytes de calldata y gas de ejecución — ρ* de 66.9 a 105.5 gas por byte según la forma de la ruta — y cómo las cuatro puertas del Router lo convierten en una regla que elige la forma más barata de hacer swap en cada chain.
Français — Le taux de change mesuré entre octets de calldata et gas d’exécution — ρ* de 66.9 à 105.5 gas par octet selon la forme de la route — et comment les quatre portes du Router en font une règle qui choisit la manière la moins chère d’échanger sur chaque chaîne.
Deutsch — Der gemessene Wechselkurs zwischen Calldata-Bytes und Ausführungsgas — ρ* von 66,9 bis 105,5 Gas pro Byte je nach Routenform — und wie die vier Türen des Routers daraus eine Regel machen, die auf jeder Chain den günstigeren Swap-Weg wählt.
Русский — Измеренный обменный курс между байтами calldata и газом исполнения — ρ* от 66,9 до 105,5 газа за байт в зависимости от формы маршрута — и как четыре входа Router превращают его в правило выбора самого дешёвого способа обмена в каждой сети.
Türkçe — Calldata baytları ile yürütme gazı arasındaki ölçülmüş döviz kuru — rota biçimine göre bayt başına 66,9–105,5 gaz olan ρ* — ve Router’ın dört kapısının bunu her zincirde daha ucuz takas yolunu seçen bir kurala nasıl çevirdiği.
العربية — سعر الصرف المقيس بين بايتات calldata وغاز التنفيذ — ρ* من 66.9 إلى 105.5 غاز لكل بايت حسب شكل المسار — وكيف تحوّله أبواب الـ Router الأربعة إلى قاعدة تختار أرخص طريقة للمبادلة على كل سلسلة.
हिन्दी — calldata बाइट्स और execution gas के बीच मापी गई विनिमय दर — रूट के आकार के अनुसार 66.9 से 105.5 gas प्रति बाइट का ρ* — और Router के चार दरवाज़े इसे हर चेन पर सबसे सस्ता swap तरीका चुनने वाले नियम में कैसे बदलते हैं।
日本語 — calldata のバイトと実行ガスの間で測定した交換レート——ルート形状により 1 バイトあたり 66.9〜105.5 ガスの ρ*——と、Router の四つの入口がそれを各チェーンで最も安いスワップ方法を選ぶ規則に変える仕組み。
中文 — calldata 字节与执行 gas 之间实测的兑换率——按路由形态每字节 66.9 至 105.5 gas 的 ρ*——以及 Router 的四个入口如何把它变成在每条链上选择最便宜兑换方式的规则。
한국어 — calldata 바이트와 실행 가스 사이의 측정된 환율 — 경로 형태에 따라 바이트당 66.9~105.5 가스인 ρ* — 과 Router의 네 개 문이 이를 모든 체인에서 더 저렴한 스왑 방식을 고르는 규칙으로 바꾸는 방법.
Bahasa Indonesia — Kurs tukar terukur antara byte calldata dan gas eksekusi — ρ* sebesar 66,9 hingga 105,5 gas per byte menurut bentuk rute — dan bagaimana empat pintu Router menjadikannya aturan yang memilih cara swap termurah di setiap chain.
বাংলা — calldata বাইট ও execution gas-এর মধ্যে মাপা বিনিময় হার — রুটের আকার অনুযায়ী প্রতি বাইটে ৬৬.৯ থেকে ১০৫.৫ gas-এর ρ* — এবং Router-এর চারটি দরজা কীভাবে একে প্রতিটি চেইনে সবচেয়ে সস্তা swap পথ বাছার নিয়মে পরিণত করে।
Filipino — Ang sinukat na palitan sa pagitan ng calldata bytes at execution gas — ρ* na 66.9 hanggang 105.5 gas bawat byte ayon sa hugis ng ruta — at kung paano ito ginagawang panuntunan ng apat na pinto ng Router para piliin ang pinakamurang swap sa bawat chain.
The rule
ρ* is the number of gas units one calldata byte is worth to a solve of that shape. Where the chain charges less than ρ* per byte, carrying the pre-solved route is cheaper; where it charges more, the in-frame solve is. On the OP-Stack chains and Arbitrum the data term is 0.9–14 % of a swap's cost — execution is where the money goes, which is where the executor's efficiency compounds.
Four doors, one executor
All four reach the same _execute, the same floors and the same fee. The doors are not a convenience feature; they are the cost model, made into an interface.
| door | route source | use it when |
|---|---|---|
| swapExactIn | calldata | bytes are cheap relative to execution |
| swapExactInWithPermit2 | calldata + signature | you want a gasless approval |
| swapExactInNative | calldata, native ETH in | you sell ETH itself |
| swapBestExactIn | solved on chain, atomically | bytes are dear, or you want no off-chain step at all |
Source: whitepaper v2.3 §11.1, §17.6
In depth: the affine cost of a swap
The gas exchange rate matters because the cost of an aggregated swap has two parts. The data part is what the chain charges for the bytes of calldata — on rollups this is the cost of posting the transaction to the base layer. The execution part is what the chain charges for computation. A route carried in calldata costs bytes and saves computation; a route solved on chain costs computation and saves bytes.
The byte–gas exchange rate ρ* is the point where the two options cost the same. BlazePhoenix measured it with a bench that prices each route shape both ways: the calldata door with the route supplied, and swapBestExactIn with the route solved in-frame. For the shapes the Solver produces, one calldata byte is worth 66.9 to 105.5 gas of solving.
The practical rule follows directly. If a chain charges less than ρ* gas per calldata byte, send the pre-solved route. If it charges more, let the Router solve. On the OP-Stack chains and Arbitrum today, the data term is only 0.9–14 % of a swap's total cost, so execution efficiency dominates — which is where the Router's measured executor efficiency pays.
The four doors exist so that integrators never have to overpay. Bots on a cheap-calldata chain use swapExactIn; wallets that want gasless approvals use the Permit2 door; ETH sellers use the native door; agents that want no off-chain step at all use swapBestExactIn. The guarantees are identical behind all four.
Key facts
BlazePhoenix measured ρ* at 66.9 to 105.5 gas per calldata byte by route shape. On OP-Stack chains and Arbitrum the data term is 0.9–14% of swap cost. The BlazePhoenix Router has 4 doors and 1 executor. Only 1 of the 4 doors invokes the Solver in-transaction. All 4 doors enforce the same floors and the same 0.28% fee.
The bottom line
BlazePhoenix measured the exchange rate between bytes and computation and built it into the interface. On every chain there is a cheapest way to swap, and the Router offers it.
Do not trust this page — reproduce it
Every claim above is checkable against the chain. Start here:
cd Blaze-Phoenix-Dex && forge test --match-path test/EquationBench.t.sol -vvCite 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). The byte–gas exchange rate ρ*: when to solve on-chain and when to carry the route in calldata. BlazePhoenix Engineering. https://blazephoenix.xyz/learn/byte-gas-exchange-rate/@misc{blazephoenix_byte_gas_exchange_rate,
title = {The byte–gas exchange rate ρ*: when to solve on-chain and when to carry the route in calldata},
author = {BlazePhoenix},
year = {2026},
url = {https://blazephoenix.xyz/learn/byte-gas-exchange-rate/},
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). Sources cited: EIP-2612 · github.com: permit2
Related engineering
Questions, a partnership or a bug to report? Contact us or email contact@blazephoenix.xyz