BlazePhoenix Technical Whitepaper: an on-chain liquidity aggregator whose quote and execution are one computation
Abstract
This is the technical whitepaper of BlazePhoenix-Dex, Version 2.4.0 (November 2026), which supersedes Version 2.3.1 of 16 November 2026: an on-chain liquidity aggregator for the EVM built on one claim, that a quote and its execution are the same computation. The route is derived inside the transaction that executes it, from public pool state, by a stateless library any reader can re-run, and the number that binds at settlement is re-derived by the same dispatcher in the executing frame. There is no routing service, no price oracle, no keeper and no upgrade path. Version 2.4.0 describes the V2 generation of the DEX at commit 6387350 and the Staking V4 engine at commit 9958d5f, with measurements dated at commit 969bcc6 (16 November 2026). What changed against 2.3: (1) route shape: at most 2 hops and 5 legs per hop, with 4 solver topologies; (2) architecture: the Router, Solver, Hub, Quoter and Core are joined by the Gate, which places every external venue behind an immutable per-venue wrapper, by the Math library and by the adapters; (3) design discipline: Metrological Design is set out as a chapter of its own (§2); (4) assurance apparatus, with denominators: 54 stateful invariants in 18 files, 4 Certora specifications, 1,895 registered mutants and 3,517 declared test functions in 515 files at 969bcc6, and 15 Halmos checks reporting [PASS] in the CI run at 6387350; (5) the Staking V4 chapter restates the emission equations: 90,000,000 BZPX over eight years per deployment, a linear base plus a series that halves every two years, with the schedule closing exactly; (6) a new section, §27, describes the interfaces to the DEX (SDK, local and hosted MCP, API, Hermes plugin and app), each read at a named commit, with who performs the RPC and what each verifies; (7) changes merged after 969bcc6 are listed, each with its regression test. The full list is in the revision history of the paper. Status: the V2 DEX and the staking engine are pre-launch engineering previews with no mainnet deployment; no external audit yet. The generation deployed on mainnet is V1. Text licence: CC BY-NC-ND 4.0 (Version 2.3 keeps CC BY 4.0, the licence it was published under). The contracts are source-available under the Business Source License 1.1 (Change Date 2030-06-01, then GPL-2.0-or-later) and are not part of this record. The full text in Markdown is attached to this record. Use of AI tools: drafting, typesetting and mechanical checks of this version were done with the assistance of an AI coding assistant (Claude Code, Anthropic). The figures reported are outputs of the repository's test, mutation and measurement tooling, reproducible with the commands in the appendices. The author is responsible for the content.
Community
0 commentsNo discussion yet
Be the first to share a question or observation.