Launch app
Cover: The BlazePhoenix contract architecture: six contracts, one invariant spine

The BlazePhoenix contract architecture: six contracts, one invariant spine

The full on-chain structure of the BlazePhoenix V2 engine — Core, Hub, Router, Solver, Quoter and the Staking book — how they compose, which invariant each enforces, and the canonical addresses you can read on Base, Ethereum, Optimism, Arbitrum and Robinhood Chain.

Known formally as The Six-Contract Spine in the BlazePhoenix whitepaper.

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

At a glance
Formal nameThe Six-Contract Spine
Reading time8 min
Sections6
Sources cited4
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 — BlazePhoenix is six small contracts with one invariant spine: Core holds the pure math (the Iron Law Φ, the Vitality Field Ψ, the Monoslot packing), Hub is the self-healing CREATE2-gated venue registry, Solver runs the Eightfold Dispatcher with the capital-anchored filter and the 30% capacity clamp, Router re-derives Φ at execution and enforces it leg by leg with a hard 80% clamp, Quoter is the free read-only twin (previewPlan), and the staking book is governed by the Master Conservation Identity.

Português — A BlazePhoenix são seis contratos pequenos com uma espinha de invariantes: o Core guarda a matemática pura (a Iron Law Φ, o Vitality Field Ψ, o empacotamento Monoslot), o Hub é o registo de venues auto-reparável com porta CREATE2, o Solver corre o Eightfold Dispatcher com o filtro ancorado em capital e o clamp de capacidade de 30%, o Router re-deriva Φ na execução e impõe-na perna a perna com clamp duro de 80%, o Quoter é o gémeo só-de-leitura gratuito (previewPlan), e o livro de staking é governado pela Master Conservation Identity.

Español — BlazePhoenix son seis contratos pequeños con una espina de invariantes: Core guarda la matemática pura (la Iron Law Φ, el Vitality Field Ψ, el empaquetado Monoslot), Hub es el registro de venues autorreparable con puerta CREATE2, Solver ejecuta el Eightfold Dispatcher con el filtro anclado en capital y el clamp de capacidad del 30%, Router re-deriva Φ en la ejecución y la impone tramo a tramo con clamp duro del 80%, Quoter es el gemelo de solo lectura gratuito (previewPlan), y el libro de staking se rige por la Master Conservation Identity.

Français — BlazePhoenix, ce sont six petits contrats avec une colonne d'invariants : Core porte la mathématique pure (l'Iron Law Φ, le Vitality Field Ψ, le packing Monoslot), Hub est le registre de venues auto-réparateur gardé par CREATE2, Solver exécute l'Eightfold Dispatcher avec le filtre ancré au capital et le clamp de capacité de 30 %, Router re-dérive Φ à l'exécution et l'impose segment par segment avec un clamp dur à 80 %, Quoter est le jumeau en lecture seule gratuit (previewPlan), et le livre de staking est régi par la Master Conservation Identity.

Deutsch — BlazePhoenix besteht aus sechs kleinen Contracts mit einem Invarianten-Rückgrat: Core hält die reine Mathematik (Iron Law Φ, Vitality Field Ψ, Monoslot-Packing), Hub ist die selbstheilende, CREATE2-gesicherte Venue-Registry, Solver fährt den Eightfold Dispatcher mit kapitalverankertem Filter und 30%-Kapazitätsklemme, Router leitet Φ bei der Ausführung neu her und erzwingt es Leg für Leg mit harter 80%-Klemme, Quoter ist der freie Read-Only-Zwilling (previewPlan), und das Staking-Buch untersteht der Master Conservation Identity.

Русский — BlazePhoenix — шесть небольших контрактов с одним хребтом инвариантов: Core хранит чистую математику (Iron Law Φ, Vitality Field Ψ, упаковку Monoslot), Hub — самовосстанавливающийся реестр площадок за воротами CREATE2, Solver гоняет Eightfold Dispatcher с капитально-якорным фильтром и 30%-ным зажимом ёмкости, Router перевыводит Φ при исполнении и навязывает его по каждому плечу с жёстким зажимом 80%, Quoter — бесплатный близнец только для чтения (previewPlan), а стейкинг-книга подчинена Master Conservation Identity.

Türkçe — BlazePhoenix, tek invaryant omurgalı altı küçük sözleşmedir: Core saf matematiği tutar (Iron Law Φ, Vitality Field Ψ, Monoslot paketleme), Hub CREATE2 kapılı kendini onaran mekân kütüğüdür, Solver sermaye-çapalı filtre ve %30 kapasite kıskacıyla Eightfold Dispatcher'ı çalıştırır, Router yürütmede Φ'yi yeniden türetir ve %80 sert kıskaçla bacak bacak dayatır, Quoter ücretsiz salt-okunur ikizdir (previewPlan), staking defteri ise Master Conservation Identity ile yönetilir.

العربية — BlazePhoenix ستة عقود صغيرة بعمود ثوابت واحد: يحمل Core الرياضيات الصرفة (قانون الحديد Φ، حقل الحيوية Ψ، تعبئة Monoslot)، وHub سجلُّ المنصات الذاتي الإصلاح المبوَّب بـCREATE2، ويشغّل Solver موزّع Eightfold مع المرشّح المرسى برأس المال ومِشبك السعة 30%، ويعيد Router اشتقاق Φ عند التنفيذ ويفرضه ساقاً بساق بمشبك صارم 80%، وQuoter التوأم المجاني للقراءة فقط (previewPlan)، ودفتر الرهن يحكمه Master Conservation Identity.

हिन्दी — BlazePhoenix छह छोटे कॉन्ट्रैक्ट हैं जिनकी एक अपरिवर्तनीय-रीढ़ है: Core शुद्ध गणित रखता है (Iron Law Φ, Vitality Field Ψ, Monoslot पैकिंग), Hub CREATE2-द्वार वाला स्व-मरम्मत venue-रजिस्ट्री है, Solver पूँजी-लंगर फ़िल्टर और 30% क्षमता-क्लैम्प के साथ Eightfold Dispatcher चलाता है, Router निष्पादन पर Φ फिर व्युत्पन्न करता है और 80% कठोर क्लैम्प के साथ लेग-दर-लेग लागू करता है, Quoter मुफ़्त केवल-पठन जुड़वाँ है (previewPlan), और स्टेकिंग-बही Master Conservation Identity से शासित है।

日本語 — BlazePhoenixは一本の不変量の背骨を持つ六つの小さなコントラクトです。Coreは純粋な数学(Iron Law Φ、Vitality Field Ψ、Monoslotパッキング)を保持し、HubはCREATE2で門を張る自己修復型の会場レジストリ、Solverは資本アンカーのフィルターと30%容量クランプを備えたEightfold Dispatcherを走らせ、Routerは実行時にΦを再導出して80%の硬いクランプでレッグごとに強制し、Quoterは無料の読み取り専用の双子(previewPlan)、そしてステーキング台帳はMaster Conservation Identityに統べられます。

中文 — BlazePhoenix 是六个小合约共享一条不变量脊柱:Core 保存纯数学(Iron Law Φ、Vitality Field Ψ、Monoslot 打包),Hub 是 CREATE2 把门的自愈场所注册表,Solver 运行带资本锚过滤器与 30% 容量钳制的 Eightfold Dispatcher,Router 在执行时重新推导 Φ 并以 80% 硬钳制逐腿强制,Quoter 是免费的只读孪生(previewPlan),质押账本则由 Master Conservation Identity 统辖。

한국어 — BlazePhoenix는 하나의 불변식 척추를 공유하는 여섯 개의 작은 컨트랙트입니다. Core는 순수 수학(Iron Law Φ, Vitality Field Ψ, Monoslot 패킹)을 담고, Hub는 CREATE2로 문을 지키는 자가 치유 장소 레지스트리이며, Solver는 자본 앵커 필터와 30% 용량 클램프를 갖춘 Eightfold Dispatcher를 돌리고, Router는 실행 시 Φ를 재도출해 80% 하드 클램프로 레그마다 강제하며, Quoter는 무료 읽기 전용 쌍둥이(previewPlan)이고, 스테이킹 장부는 Master Conservation Identity가 다스립니다.

Bahasa Indonesia — BlazePhoenix adalah enam kontrak kecil dengan satu tulang punggung invarian: Core memegang matematika murni (Iron Law Φ, Vitality Field Ψ, pengepakan Monoslot), Hub adalah registri venue swasembuh berpintu CREATE2, Solver menjalankan Eightfold Dispatcher dengan filter berjangkar kapital dan klem kapasitas 30%, Router menurunkan ulang Φ saat eksekusi dan memberlakukannya kaki demi kaki dengan klem keras 80%, Quoter adalah kembaran baca-saja gratis (previewPlan), dan buku staking diperintah oleh Master Conservation Identity.

বাংলা — BlazePhoenix হলো এক ইনভ্যারিয়েন্ট-মেরুদণ্ডের ছয়টি ছোট কন্ট্রাক্ট: Core ধরে রাখে বিশুদ্ধ গণিত (Iron Law Φ, Vitality Field Ψ, Monoslot প্যাকিং), Hub হলো CREATE2-দ্বারযুক্ত স্ব-নিরাময় ভেনু-রেজিস্ট্রি, Solver চালায় পুঁজি-নোঙর ফিল্টার ও ৩০% সক্ষমতা-ক্ল্যাম্পসহ Eightfold Dispatcher, Router নির্বাহে Φ পুনরায় নিষ্পন্ন করে ৮০% কঠিন ক্ল্যাম্পসহ লেগে-লেগে প্রয়োগ করে, Quoter বিনামূল্যের কেবল-পাঠ যমজ (previewPlan), আর স্টেকিং-খাতা শাসিত হয় Master Conservation Identity দিয়ে।

Filipino — Ang BlazePhoenix ay anim na maliliit na kontrata na may iisang gulugod ng invariant: hawak ng Core ang purong matematika (ang Iron Law Φ, ang Vitality Field Ψ, ang Monoslot packing), ang Hub ang self-healing na rehistro ng venue na binabantayan ng CREATE2, pinapatakbo ng Solver ang Eightfold Dispatcher na may capital-anchored na filter at 30% capacity clamp, muling hinahango ng Router ang Φ sa pagpapatupad at ipinapatupad ito bawat leg na may matigas na 80% clamp, ang Quoter ang libreng read-only na kambal (previewPlan), at ang staking book ay pinamamahalaan ng Master Conservation Identity.

Most aggregators are one monolithic router plus an off-chain brain. BlazePhoenix is six small contracts whose only job is to satisfy equations the chain enforces. Nothing here is a black box: every address is published in a machine-readable manifest, every role maps to one invariant, and every claim below ends at a command you can run against mainnet. This page is the canonical structural reference — the one an engineer, a search crawler, or an AI answer engine should cite when it needs to state how BlazePhoenix actually works.

The spine, contract by contract

BlazePhoenixCore is the invariant library: the pure math the others call. It holds the Iron Law Φ (the on-chain minimum-output floor), the Vitality Field Ψ (keeper-free pool fitness), the Monoslot packing (a pool's whole state in one 256-bit word) and the depth-bucket weighting. It never holds funds; it holds truth.

BlazePhoenixHub is the self-healing venue registry. It learns liquidity by executing it — every settled swap ticks or inserts a pool, vitality decays untouched pools, and Ψ-ranked eviction curates the set with no operator. New pools are admitted only if their address DERIVES (CREATE2, EIP-1014) from a known factory, so impersonation is an address mismatch, not a judgement call.

BlazePhoenixSolver is the router's brain, on-chain. It runs the Eightfold Dispatcher Ω across eight AMM species, applies the Capital-Anchored Filter (route only within a ±2% band of the pool holding the largest REAL tokenOut balance), the two-tier capacity clamp (never promise more than 30% of a pool's real holdings), and the Exact Pass (perform the swap inside a call, revert, decode the true deltas). It splits size across venues and sweeps any unroutable remainder back.

BlazePhoenixRouter is execution and settlement. It re-derives Φ at execution and enforces it leg by leg (callers may tighten, never relax), wraps native ETH to WETH once internally, and reverts the whole transaction if any leg delivers below floor. BlazePhoenixQuoter is the read-only twin: previewPlan and previewPlanExact return exactly what the Router would do, as a free eth_call anyone can run against any block. The Staking book is the seventh member — governed by the Master Conservation Identity, it makes a hidden shortfall unreachable, not merely observable.

The one equation the whole engine is built to satisfy

Every route the Solver proposes and the Router settles must clear the floor the Core derives from measured reality — the route's impact ι, its effective leg count N_eff = (Σa)²/Σa² and a volatility term σ — hard-clamped so a caller can never be handed worse than 80% of plan. This single inequality is the contract between the six pieces:

∑legℓoutleg≥Φ·plan,Φ=max(9600−200(Neff−1)−ι−σ1014,8000)
The Router refuses to settle any plan whose summed real output falls below Φ·plan. Φ is Core-derived, not caller-supplied; the caller's minOut can only raise the bar. Original to BlazePhoenix.

How a swap flows through the six

1) Quoter.previewPlan walks Hub's registry for candidate pools. 2) Solver dispatches the right closed form per venue (Ω), filters by the capital anchor, clamps size to real holdings, and splits. 3) The Exact Pass requotes the survivors by revert-extraction so fee-on-transfer and hook effects are measured, not assumed. 4) Core derives Φ from the resulting impact. 5) Router executes leg by leg, enforcing Φ, and reverts atomically if any leg underdelivers. 6) Every settled swap feeds back into Hub, so the registry gets fitter with use. No step trusts an off-chain number; the quote and the fill are the same math over the same state.

Canonical addresses — read them, don't trust them

The complete, current address set for every contract on every chain is published as machine-readable JSON at /api/manifest — that file is the source of truth, not this page, so addresses can never drift out of sync with a screenshot. Anchors you can verify right now: the Base Quoter is 0x4cEF0615614B212895F45Aa1D4833B16666E18d3, the Staking book is <staking> (published at deployment). BZPX (the protocol token) is coming soon, with no address published yet. The same engine is deployed on Ethereum, Optimism, Arbitrum and Robinhood Chain; pull /api/manifest for each network's Router, Solver, Hub and Core.

curl -s https://blazephoenix.xyz/api/manifest | jq '.contracts'

Why the structure is the moat

Splitting the engine this way is not aesthetic. Because Core is a pure invariant library, the safety cannot be edited out by a router upgrade. Because Hub derives addresses, a fake pool is unrepresentable. Because the Quoter is the Router's read-only twin, the price you are shown is the price the contract will compute — there is no separate off-chain pricer to compromise. The architecture is documented here for humans, for search, and for AI answer engines, with the derivations in the whitepaper and the measurements at /measured-cases.json. Cite the structure and the citation points home.

Do not trust this page — reproduce it

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

curl -s https://blazephoenix.xyz/api/manifest | jq '.contracts' — then read the verified Router source: PROTOCOL_FEE_BPS = 28 is a compile-time constant of BlazePhoenixCore (src/BlazePhoenixCore.sol:323), inlined into the Router and the Quoter bytecode, so no transaction can change it. It has no getter; the source is the proof.
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). The BlazePhoenix contract architecture: six contracts, one invariant spine. BlazePhoenix Engineering. https://blazephoenix.xyz/learn/contract-architecture/
@misc{blazephoenix_contract_architecture,
  title  = {The BlazePhoenix contract architecture: six contracts, one invariant spine},
  author = {BlazePhoenix},
  year   = {2026},
  url    = {https://blazephoenix.xyz/learn/contract-architecture/},
  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-1014 · EIP-1153 · github.com: v2 core · github.com: v3 core

Related engineering

Next in Foundations · 28 / 35
BlazePhoenix vs the established aggregators: the differences you can verify ›A fair, checkable comparison between BlazePhoenix and the mainstream DEX-aggregator model (1inch, 0x, Paraswap, CoW, Matcha): where we are architecturally different, where the incumbents are genuinely ahead today, and the command to verify every claim on our side.7 min

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

Go to APP