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.3.1, 16 November 2026, which corrects Version 2.3 of 24 September 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. The paper begins with the problem (a quote is a promise someone else computed), states its design discipline, Metrological Design (measure every coordinate that can be measured, and make the rest monotone so a false input hurts only its supplier), and then specifies the system: the Meta-Equation and its dependency budget; the Eightfold Dispatcher; Uniswap V4 end to end and the Solidly solver; the Deterministic Derivation; the Monoslot; the Self-Healing Registry and the Vitality Field; routing and the Split Allocator; the execution layer and the Iron-Law output floor; quote surfaces and how a quote ages; fee policy; the security model; architecture, sizes and measured performance; and what a user must trust and what they need not. The appendices give the primitive equations, the enforced invariants and the commands that reproduce the measurements. Every guarantee is stated with its enforcement site and its limit, and the verification apparatus is printed with its denominators: 1,609 declared tests across 236 files, 268 of 268 curated mutants killed, 14 of 15 mutants aimed at 43 stateful invariants noticed, covering arrays of strength 2 (63 rows, 258 pairs) and 3 (168 rows, 1,636 triples), 14 + 5 metamorphic relations, three optimiser builds in agreement, and a 240-sample study of how a quote ages. The generation live on mainnet is V1; this paper specifies V2, exercised end to end on forks of live liquidity. Version 2.3.1 corrects three statements of Version 2.3 and changes nothing else; the text still describes Blaze-Phoenix-Dex at main 8916545. (1) The code licence's Change Date is 2030-06-01, as the repository's LICENSE file states; Version 2.3 printed 2030-07-01. (2) The staking line of the §20 allocation table now states the emission design of the staking contract at commit c0366cf30095d39741596df29d1d5be590765955: two independent deployments, each capped at 90,000,000 over 8 years, a linear base plus a bonus that halves every two years; the 180,000,000 total is unchanged. (3) The text licence of this version is CC BY-NC-ND 4.0. A dated status line and a revision-history entry were added. 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.