Launch app
Cover: Computable gas bounds: routing that cannot be gas-bombed

Computable gas bounds: routing that cannot be gas-bombed

A V2 primitive: bounding the gas of every route so a crafted pool cannot make execution unpredictably expensive or revert. Specified, pre-launch; independent audit not done yet.

Known formally as Computable Gas Limits in the BlazePhoenix whitepaper.

BlazePhoenix Engineering · article updated 2026-08-05 · site dataset through 2026-12-02 · 6 min · written from the deployed bytecode

At a glance
Formal nameComputable Gas Limits
Reading time6 min
Sections2
Sources cited2
Updated2026-08-05

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

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

English — A route that touches attacker-influenced code can be made to burn arbitrary gas, so this V2 primitive attaches a derived worst-case gas bound to every leg before it runs: the router simulates the plan on chain first and refuses or reprices any plan whose bound exceeds what the user authorised. Costs become predictable and gas-exhaustion DoS stops being free. Specified, pre-launch; independent audit not done yet.

Português — Uma rota que toca em código influenciado por um atacante pode ser levada a queimar gás arbitrário, por isso esta primitiva da V2 associa a cada perna, antes de correr, um limite de gás de pior caso derivado: o router simula o plano on-chain primeiro e recusa ou recalcula qualquer plano cujo limite exceda o que o utilizador autorizou. Os custos tornam-se previsíveis e o DoS por exaustão de gás deixa de ser grátis. Especificada, em pré-lançamento; auditoria independente ainda por fazer.

Español — Una ruta que toca código influido por un atacante puede ser forzada a quemar gas arbitrario, así que esta primitiva de V2 asocia a cada tramo, antes de ejecutarse, un límite de gas de peor caso derivado: el router simula el plan on-chain primero y rechaza o recalcula cualquier plan cuyo límite exceda lo que el usuario autorizó. Los costes se vuelven predecibles y el DoS por agotamiento de gas deja de ser gratis. Especificada, previa al lanzamiento; auditoría independiente aún pendiente.

Français — Une route qui touche du code influencé par un attaquant peut être forcée à brûler un gaz arbitraire ; cette primitive V2 attache donc à chaque segment, avant exécution, une borne de gaz pire-cas dérivée : le routeur simule d'abord le plan on-chain et refuse ou reprice tout plan dont la borne dépasse ce que l'utilisateur a autorisé. Les coûts deviennent prévisibles et le DoS par épuisement de gaz cesse d'être gratuit. Spécifiée, avant lancement ; audit indépendant pas encore réalisé.

Deutsch — Eine Route, die von Angreifern beeinflussten Code berührt, kann beliebig Gas verbrennen; diese V2-Primitive hängt daher an jedes Leg vor der Ausführung eine hergeleitete Worst-Case-Gas-Schranke: Der Router simuliert den Plan zuerst on-chain und lehnt Pläne ab oder bepreist sie neu, deren Schranke das vom Nutzer Autorisierte übersteigt. Kosten werden vorhersagbar, Gas-Erschöpfungs-DoS ist nicht mehr gratis. Spezifiziert, vor dem Start; unabhängiges Audit noch nicht erfolgt.

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

Türkçe — Saldırganın etkilediği koda dokunan bir rota keyfî gaz yakmaya zorlanabilir; bu yüzden bu V2 ilkeli her bacağa, çalışmadan önce türetilmiş bir en-kötü-durum gaz sınırı iliştirir: yönlendirici planı önce zincir üstünde simüle eder ve sınırı kullanıcının yetkilendirdiğini aşan planı reddeder veya yeniden fiyatlar. Maliyetler öngörülebilir olur, gaz tüketme DoS'u bedava olmaktan çıkar. Spesifiye edilmiş, lansman öncesi; bağımsız denetim henüz yapılmadı.

العربية — المسار الذي يلمس كوداً يتأثر بالمهاجم يمكن إجباره على حرق غاز اعتباطي؛ لذلك تُلحق هذه البدائية في V2 بكل ساق، قبل تشغيلها، حداً مشتقاً لغاز أسوأ الحالات: يحاكي الموجّه الخطة على السلسلة أولاً ويرفض أو يعيد تسعير أي خطة يتجاوز حدُّها ما أذن به المستخدم. تصبح التكاليف متوقعة ويكفّ هجوم استنزاف الغاز عن كونه مجانياً. موصّفة، قبل الإطلاق؛ لم يُجرَ التدقيق المستقل بعد.

हिन्दी — हमलावर-प्रभावित कोड को छूने वाली रूट से मनमाना गैस जलवाया जा सकता है, इसलिए V2 की यह प्रिमिटिव हर लेग को चलने से पहले एक व्युत्पन्न सबसे-बुरी-स्थिति गैस-सीमा देती है: राउटर पहले योजना को ऑन-चेन सिम्युलेट करता है और जिस योजना की सीमा उपयोगकर्ता की अनुमति से ऊपर जाए उसे अस्वीकार या पुनर्मूल्यित करता है। लागतें पूर्वानुमेय हो जाती हैं और गैस-थकान DoS मुफ़्त नहीं रहता। स्पेसिफ़ाइड, लॉन्च से पहले; स्वतंत्र ऑडिट अभी नहीं हुआ।

日本語 — 攻撃者の影響下にあるコードに触れるルートは任意のガスを燃やされかねません。そこでこのV2プリミティブは、実行前に各レッグへ導出された最悪ケースのガス上限を付与します。ルーターはまずプランをオンチェーンでシミュレートし、上限がユーザーの承認を超えるプランを拒否または再価格します。コストは予測可能になり、ガス枯渇DoSはただでは済まなくなります。仕様確定、ローンチ前、独立監査はまだ未実施。

中文 — 触及攻击者可影响代码的路由可能被迫烧掉任意数量的 gas,因此这个 V2 原语在每条腿运行前为其附加推导出的最坏情况 gas 上界:路由器先在链上模拟计划,上界超出用户授权的计划将被拒绝或重新定价。成本变得可预测,gas 耗尽式 DoS 不再是免费的。已规格化,尚未上线,尚未完成独立审计。

한국어 — 공격자가 영향을 미치는 코드를 거치는 경로는 임의의 가스를 태우도록 만들 수 있습니다. 그래서 이 V2 프리미티브는 실행 전에 각 레그에 도출된 최악 사례 가스 상한을 부여합니다. 라우터는 먼저 계획을 온체인에서 시뮬레이션하고, 상한이 사용자가 승인한 범위를 넘는 계획은 거부하거나 다시 가격을 매깁니다. 비용은 예측 가능해지고 가스 고갈 DoS는 더 이상 공짜가 아닙니다. 명세 완료, 출시 전, 독립 감사는 아직 진행되지 않음.

Bahasa Indonesia — Rute yang menyentuh kode yang dipengaruhi penyerang bisa dipaksa membakar gas sembarang, maka primitif V2 ini melekatkan batas gas kasus-terburuk yang diturunkan pada setiap kaki sebelum berjalan: router menyimulasikan rencana on-chain lebih dulu dan menolak atau menghitung ulang rencana yang batasnya melebihi otorisasi pengguna. Biaya jadi dapat diprediksi dan DoS penghabisan gas tak lagi gratis. Terspesifikasi, pra-peluncuran; audit independen belum dilakukan.

বাংলা — আক্রমণকারী-প্রভাবিত কোড ছোঁয়া রুটকে ইচ্ছেমতো গ্যাস পোড়াতে বাধ্য করা যায়, তাই V2-এর এই প্রিমিটিভ প্রতিটি লেগে চালানোর আগে একটি নিষ্পন্ন সবচেয়ে-খারাপ-ক্ষেত্রের গ্যাস-সীমা জুড়ে দেয়: রাউটার আগে পরিকল্পনাটি অন-চেইনে সিমুলেট করে এবং যে পরিকল্পনার সীমা ব্যবহারকারীর অনুমোদন ছাড়ায় তা প্রত্যাখ্যান বা পুনর্মূল্যায়ন করে। খরচ পূর্বাভাসযোগ্য হয় এবং গ্যাস-নিঃশেষ DoS আর বিনামূল্যে থাকে না। স্পেসিফায়েড, লঞ্চের আগে; স্বাধীন অডিট এখনো হয়নি।

Filipino — Ang rutang dumadaan sa code na naiimpluwensyahan ng umaatake ay mapipilit magsunog ng arbitraryong gas, kaya ang primitive na ito ng V2 ay naglalagay sa bawat leg, bago ito tumakbo, ng hinangong worst-case na hangganan ng gas: sinisimulate muna ng router ang plano on-chain at tinatanggihan o muling pinepresyuhan ang planong lampas sa pinahintulutan ng user ang hangganan. Nagiging predictable ang gastos at hindi na libre ang gas-exhaustion DoS. Naka-specify, bago ang launch; wala pang independent audit.

BlazePhoenix V2 is pre-launch; independent audit not done yet. This is the specified design. A route that touches attacker-influenced code can be made to burn arbitrary gas — a hostile hook or a pathological pool can turn a cheap swap into a failed, expensive one. The gas-bounds primitive gives every step a computable upper limit before it runs.

Bounding before executing

Because the router simulates the plan on chain first, it can attach a worst-case gas estimate to each leg and refuse or reprice a plan whose bound exceeds what the user authorised. Costs become predictable and denial-of-service by gas exhaustion stops being free for an attacker. The bound is derived, not guessed, so it holds even against pools the router has never seen.

The asymmetry favours the defender. Probing a plan is free — previewPlan is an eth_call, so the bound is computed and checked before anyone pays for anything — while pushing a route past its bound costs the attacker a state-changing transaction of their own. A gas bomb that must announce its size in a free simulation before it can detonate is no longer a bomb; it is a line item the router declines.

Do not trust this page — reproduce it

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

Call previewPlan and read the gas estimate it returns; a plan whose real cost exceeds its stated bound is exactly what the primitive is designed to reject
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). Computable gas bounds: routing that cannot be gas-bombed. BlazePhoenix Engineering. https://blazephoenix.xyz/learn/computable-gas-bounds/
@misc{blazephoenix_computable_gas_bounds,
  title  = {Computable gas bounds: routing that cannot be gas-bombed},
  author = {BlazePhoenix},
  year   = {2026},
  url    = {https://blazephoenix.xyz/learn/computable-gas-bounds/},
  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-1153 · github.com: TSTORE Low Gas Reentrancy

Related engineering

Next in Foundations · 21 / 35
The universal AMM primitive: one abstraction over every curve ›How BlazePhoenix V2 routes across constant-product, stable and concentrated-liquidity pools through a single mathematical interface instead of per-DEX handlers. Pre-audit design.7 min

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

Go to APP