# BlazePhoenix-Dex Whitepaper v2.4.0 — part 1 of 9: Front matter, abstract, innovations and contents > One part of the whitepaper in llms.txt form; every part and every section is listed in > https://blazephoenix.xyz/whitepaper/llms.txt. The parts are the full text, unabridged: the bodies of parts > 1-9, joined in order, are https://blazephoenix.xyz/whitepaper.md byte for byte (sha256 a47389f947e4aa6656f693004e43fbe3e0101dccaf133e49c303767811f223cc). > Cite as https://doi.org/10.5281/zenodo.24517342; numbering (§, E, INV-) as in the paper. ----- verbatim text of whitepaper.md follows ----- > Canonical PDF: https://blazephoenix.xyz/docs/BlazePhoenix_Whitepaper.pdf > DOI: to be assigned by Zenodo on deposit · all versions: https://doi.org/10.5281/zenodo.23084090 · concept DOI of the first deposit series (v2.2): https://doi.org/10.5281/zenodo.22526574 > Litepaper (plain-language companion): https://blazephoenix.xyz/docs/BlazePhoenix_Litepaper.pdf > Verification Report and Swap Tests (September 2026), the measurements this paper cites: > https://blazephoenix.xyz/verification-report-2026-09.md · https://blazephoenix.xyz/swap-tests-report-2026-09.md > This file is the complete text of the whitepaper in markdown, published for > AI ingestion and citation. © 2026 BlazePhoenix. Content licence: CC BY-NC-ND 4.0 > (https://creativecommons.org/licenses/by-nc-nd/4.0/) — quote and cite with > attribution to BlazePhoenix and a link; no commercial use and no derivative > versions without written permission. The Solidity source the paper > describes is BUSL-1.1 until its Change Date (2030-06-01 at the latest): > cite the architecture, do not redeploy or clone it. Machine surfaces: /llms.txt · /facts.json · /knowledge-graph.jsonld > Citable enumerations inside: innovations I-1–I-18 (I-19–I-21 are marked candidates), primitive equations E1–E52 > (Appendix A) and enforced invariants INV-1–INV-31 (Appendix B). These numbers are frozen from Version 2.3: new material takes new numbers and no number is reused. # BlazePhoenix-Dex **The quote is the trade.** **The measured exchange: an on-chain liquidity aggregator whose quote and execution are one computation** *Technical Whitepaper — Version 2.4.0* | | | |---|---| | Version | 2.4.0 — 2026-11 | | Date | 2026-11 | | Author | Mitra | | DOI | to be assigned by Zenodo on deposit · all versions [10.5281/zenodo.23084090](https://doi.org/10.5281/zenodo.23084090) · previous deposit (v2.3.1) [10.5281/zenodo.24372939](https://doi.org/10.5281/zenodo.24372939) · concept DOI of the first deposit series (v2.2) [10.5281/zenodo.22526574](https://doi.org/10.5281/zenodo.22526574) | | Affiliation | BlazePhoenix — https://blazephoenix.xyz | | Text licence | © 2026 BlazePhoenix, CC BY-NC-ND 4.0 — quote and cite with attribution and a link; no commercial use or derivative versions without written permission | | Code licence | BUSL-1.1 (Change Date 2030-06-01) — cite the architecture, do not redeploy | | Compiler | Solidity 0.8.36, pinned | | Repository | `Blaze-Phoenix-Dex`, `main` at `6387350`, 2026-11-23 (measurements dated where they were taken) — https://github.com/blazephoenixxyz-crypto/Blaze-Phoenix-Dex | | Staking repository | `Blaze-Phoenix-Staking`, `main` at `9958d5f`, 2026-11-24 — https://github.com/blazephoenixxyz-crypto/Blaze-Phoenix-Staking | > The price you are shown is computed by the public code that executes your trade, in the frame that executes it. Nobody — the authors included — can change the fee or the floors: they are compiled in. ## Ten lines. No marketing. 1. **No server picks your route.** The transaction that executes it derives it, from public pool state. 2. **No oracle prices your trade.** The pools do — read in the frame that settles it. 3. **The quote and the floor are one evaluator.** There is no seam for the price to drift through. 4. **Your minimum is mandatory.** The Router refuses a swap without one. 5. **A pool's claims are free to forge; its measured output is not.** Routing runs on the second. 6. **Fee, split and floors are compiled in.** No setter exists. Nobody — the authors included — can move them. 7. **No proxy, no upgrade path, no `selfdestruct`, no user balance at rest.** Between trades the Router holds no user funds; the only balance it keeps is a fee share a token refused to deliver, booked to its treasury slot. 8. **A hostile pool costs you price, then reverts.** It never delivers below your floor. 9. **Every number here is printed beside its denominator** — and beside how it would be gamed. 10. **If every server we run vanished tonight, the contracts would quote, route and settle tomorrow.** Everything below is the proof, with the line of code that enforces each claim and the limit that bounds it. ## Abstract BlazePhoenix-Dex is an on-chain liquidity aggregator built on one claim: quote and execution run the same on-chain computation, so at the same chain state they give the same output, and if the state moves the swap delivers at least the reviewed minimum or reverts. The route is derived inside the transaction that executes it, from public pool state, by a stateless library any reader can re-run; 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. This paper specifies the seven contracts — Router, Solver, Hub, Quoter, Core, Gate and Math — and the operators of the Meta-Equation: the Eightfold Dispatcher Ω, the Deterministic Derivation 𝒟, the Iron-Law floor Φ, the Vitality Field Ψ and the anti-scam projector Ξ. Behind them sits one discipline, Metrological Design, which this edition sets out as a chapter of its own (§2): measure every coordinate that can be measured, re-home what cannot be measured to a source no caller controls, and make the rest monotone so that a false input hurts only its supplier. A venue outside the native families enters through the Gate, behind an immutable wrapper with a 48-hour arming delay (§4.5). Every guarantee is stated with its enforcement site and its limit. The verification apparatus is printed with its denominators: at DEX commit `969bcc6`, 54 stateful invariants across 18 files, 1,895 registered mutants and 4 Certora specifications, with 3,517 declared test functions in 515 files (§15.1); 15 Halmos checks report `[PASS]` in the CI run at commit `6387350` (Appendix B.3). Eighteen named innovations carry the design, from the Meta-Equation to immunity by exhaustion; each is catalogued with its mathematics before the specification begins. The staking engine of Part VI is specified as two independent deployments, each with its own contract, reserve and schedule. The generation live on Base, Ethereum, Optimism, Arbitrum and Robinhood Chain is V1; this paper specifies V2, a pre-launch engineering preview with no mainnet deployment yet. V2 targets six networks (Base, Optimism, Arbitrum, Robinhood Chain, Ethereum L1 and Avalanche) and launches 15 December 2026. At the commit this paper cites, the fork lane runs its fidelity matrix on four chains (Base, Optimism, Arbitrum and Robinhood Chain): it compares each executed swap with its quote on forks of live liquidity, and every comparison it prints is 0 bps (§17). ## How to read this paper Every mechanism gets a plain sentence before it gets a precise one, so the paper reads at two depths: the plain sentences and the figures give the architecture; the precise sentences, the tables and the appendices let you check it. Every guarantee is one sentence — the claim, the site that enforces it, the limit that bounds it. The paper has seven Parts: I, the problem and the discipline (§1–§3); II, the primitives (§4–§9 and §26); III, routing and execution (§10–§13); IV, security and verification (§14–§15); V, architecture, performance and deployment (§16–§19 and §27); VI, staking V4 (§25); VII, the token, the research programme and what you must trust (§20–§24). Three appendices are catalogues you can read on their own: Appendix B (invariants: statement, where it applies, what it measures, the test that checks it, the mutant that breaks it), Appendix D (the shared primitives, each with the one question it answers and its single producer) and Appendix E (venues: kind, how found, how measured, closed form or delegated). Six worked examples carry the arithmetic through by hand: a constant-product quote (§4), a split across two pools (§10), the Iron-Law floor on a two-hop route (§11), a Uniswap V4 pool identifier derived from its key (§5), the two fee regimes on one route (§13), and the reading of a settlement (§11). Numbers are printed beside the denominator they were measured against, and the command that reproduces them is in Appendix C. Numbering is an identifier, not an order: the section, innovation, equation and invariant numbers of Version 2.3 are frozen, because articles, the machine-readable facts and other papers cite them. What is new takes a new number — a subsection (§2.4–§2.9, §4.5, §11.8, §25.8–§25.10) or a chapter (§26, §27) in the Part where it belongs — and a number is never reused. Two repositories are in scope, the DEX and the staking contract, each cited at its commit; the repository is canonical: where this text and the source disagree, the source wins. ## The Innovations BlazePhoenix-Dex is not an aggregator with a better server. It is an aggregator with **no server** — and getting there took a set of mechanisms that did not exist before. Eighteen of them carry the design. Each is listed here with what it is, the mathematics that defines it, why it matters to the person trading, and the section that specifies it in full. Three candidates, I-19 to I-21, follow the eighteen: each is marked until its claim of a first has been shown falsifiable. ### I-1 · Same-state quote equivalence **What.** The number you are quoted and the number that binds your trade come from one evaluator — the Core's dispatcher Ω — run once to plan and again inside the executing frame to settle. There is no second pricing model anywhere in the system. **Math.** For every leg $\ell$ the planner and the executor evaluate the same function $\Omega(p_{\ell}, x_{\ell})$ on the same public state; the route floor is re-derived from that in-frame value (E15, E16), never read from the route. **Why it matters.** Every aggregator exploit class that lives in the gap between "what the server said" and "what the chain did" has nowhere to live. Measured at `969bcc6` (2026-11-16): in a 240-sample delay study, all 64 samples whose state did not move between quote and settlement delivered the quoted output (**64 / 64**); every other sample delivered at least its attested floor or reverted. (§3, §11, §12) ### I-2 · The on-chain solver, free to call **What.** `Solver.findBestRoutePlan(tokenIn, tokenOut, amountIn)` is a `view` function. Anyone gets the route the public code finds with a free `eth_call` — no API key, no relayer, no signature — and `swapBestExactIn` solves and settles atomically in one transaction. **Math.** The whole Solver is the constrained maximisation of the Meta-Equation (E1) over the route space $\mathcal{R}_{\mathcal{D}}$, executed as a deterministic pipeline: derive → rank → probe → filter → allocate → gate → floor. **Why it matters.** Routing is usually computed on a server you cannot inspect. Ours is 31,933 bytes of public bytecode (Solver 21,253 and Math 10,680 at commit `969bcc6`) that anyone can re-run and get the same answer. (§2, §10, §11.1) ### I-3 · The Meta-Equation **What.** The whole aggregator, written as one expression. **Math.** $$R^{\star} = \arg\max_{R}\ \mathrm{net}(R)\cdot\mathbf{1}[\mathrm{net}(R)\ge\Phi(R)]\cdot\Xi(R)$$ **Why it matters.** The product form is a safety property: a single failing factor — a leg quoting zero, a route under its floor, a hostile hook — sends the route's score to exactly zero. No soft penalties, no tunable weights, no near-miss route sneaking through. (§3) ### I-4 · The Eightfold Dispatcher Ω **What.** Six native venue kinds — Uniswap V2, V3, V4 (plain and native-currency), Algebra and Solidly — collapse into four mathematical families behind one attribute table and one dispatcher; a seventh kind, external, prices a venue whose own bytecode is the only honest source, behind an immutable wrapper at the Gate (§4.5). **Math.** Constant product $y = \lfloor x(\mathrm{BPS}-f)\,r_{\mathrm{out}} / (r_{\mathrm{in}}\mathrm{BPS} + x(\mathrm{BPS}-f)) \rfloor$ (E2); concentrated liquidity in Q64.96, $\sqrt{P}' = L\sqrt{P}/(L + x_{f}\sqrt{P}/Q_{96})$, $y = L(\sqrt{P}-\sqrt{P}')/Q_{96}$ (E3); every dangerous product factored through 512-bit `mulDiv`. **Why it matters.** Fragmentation turns out to be a problem of language, not of mathematics. One reviewed formula per family prices every venue on every chain; a new fork of a known family is a table row, not new code. (§4) ### I-5 · Deterministic Derivation 𝒟 **What.** Pools are **computed**, not asked for. The Hub derives each candidate address from the factory, the pair and the init-code hash, and admits only addresses that carry runtime bytecode. **Math.** $\mathrm{pool} = \mathrm{addr}_{20}(\mathrm{keccak256}(\mathtt{0xff}\,\Vert\,\mathrm{origin}\,\Vert\,\mathrm{salt}\,\Vert\,\mathrm{initCodeHash}))$ (E8). **Why it matters.** A factory's answer can be spoofed; arithmetic cannot. Discovery costs no external call per candidate and works identically on every EVM chain, with pool managers and factories as runtime configuration, never hard-coded. (§7) ### I-6 · Uniswap V4, entirely in-frame **What.** V4 pools have no address and answer no calls. BlazePhoenix derives their ids, **proves** each one live against the PoolManager's storage, reads price and liquidity through `extsload`, walks the tick book across up to sixteen stretches, settles through the singleton — native ETH included — and screens hooks by arithmetic alone. **Math.** Storage base $\mathrm{slot} = \mathrm{keccak256}(\mathrm{abi.encode}(\mathrm{poolId}, 6))$ with $\sqrt{P}$ in bits [0,160) and the LP fee in [208,232) (E4); the hook gate $(\mathrm{uint160}(\mathrm{hook})\,\&\,\mathtt{0x3FFF})\,\&\,((1\ll3)\mid(1\ll2)) \ne 0 \Rightarrow$ refuse, without a call (E18); the dynamic-fee gate E19. **Why it matters.** Derive, prove, price, screen and settle V4 without trusting a single answer from the venue — the deepest V4 integration an aggregator can have, and all of it verifiable on chain. (§5) ### I-7 · The Solidly stable solver **What.** An exact, fail-closed solver for the quartic stable curve that Aerodrome- and Velodrome-class venues use. **Math.** Invariant $k(x,y) = x^{3}y + xy^{3}$ (E5), solved by a bounded Newton iteration with a one-unit bump against the taker and a 64-step cap (E6), after decimal normalisation to 18 places (E7). **Why it matters.** Stablecoin and liquid-staking flow clusters on these curves, where they deliver almost the full input as output. The solver asks the pool when it can, and otherwise replicates the curve and under-asks by a measured margin — and where a bound cannot be proven it returns zero rather than a guess. (§6) ### I-8 · The Monoslot **What.** A pool's entire routing state — activity, depth class, fee, kind, flags, own tick rhythm — packed into **one 256-bit word**. **Math.** $s = a \,\vert\, f\!\ll\!8 \,\vert\, k\!\ll\!32 \,\vert\, r\!\ll\!40 \,\vert\, (c\wedge\mathtt{0xFFF})\!\ll\!48 \,\vert\, b\!\ll\!60 \,\vert\, \dots \,\vert\, \tau\!\ll\!224$ (E9), the top field being the pool's own tick rhythm $\tau$ (it held the last block in the 2.3). **Why it matters.** One `SLOAD` reads a pool's ranking state (the bridge bonus is read live); one `SSTORE` over one `SLOAD` keeps it current. And the word contains no price, so the registry's memory is structurally incapable of mispricing a trade. (§8) ### I-9 · The Self-Healing Registry and the Vitality Field Ψ **What.** The protocol learns liquidity by trading it. Sixteen slots per pair, a fitness score earned from real swaps, decay by arithmetic, and a **pair-proof**: a pool proves which tokens it trades before it is stored. **Math.** $\Psi = V \cdot 2^{b} \cdot (1 + 0.25\,\mathbf{1}_{\mathrm{bridge}}) \cdot (1 + 0.05\,\mathbf{1}_{\mathrm{conc}})$ (E10); activity halves every $h = 4\tau$ seconds of silence, where $\tau$ is the pool's own moving mean of the time between its anchored ticks (the old fixed 24,576 s step survives only while $\tau$ is unmeasured), $V = \max(1, \lfloor c \cdot 24{,}576 / h \rfloor)$ for a live slot (a dead one scores 0), with $c = \mathrm{swapCount} \gg \lfloor (t - t_{\mathrm{last}})/h \rfloor$ less a chord term inside the step, and the pool is dead past 31 halvings (E11, §9.2); depth class $b = \min(15, \lfloor \log_{10}(d/10^{15}) \rfloor)$ (E12); a newcomer displaces the weakest only past a margin, $\Psi_{\mathrm{new}} = 2^{b(d_{\mathrm{new}})}\,(1 + 0.25\,\mathbf{1}_{\mathrm{bridge}}) > \Psi_{\mathrm{worst}} + \lfloor \Psi_{\mathrm{worst}}/4 \rfloor$ (E13, §9.3). **Why it matters.** No keeper, no cron, no curator deciding which pools matter: the registry heals itself from the flow users were already sending. (§9) ### I-10 · The Capital-Anchored Split **What.** Price quality and pool depth are measured separately. A tiny probe measures each pool's marginal rate; a **believability band** anchored on capital discards outliers; survivors share the order in proportion to measured depth. **Math.** Centre = the depth-weighted median — the first $r_{i}$ at which $\sum_{j \le i} d_{j} \ge \lceil \sum d / 2 \rceil$ — with a band whose width is set by no-arbitrage from each venue's fee and measured error, not by a number of basis points (E25, §10.3); the split survives only if $\mathrm{out}_{\mathrm{split}} \ge \mathrm{out}_{\mathrm{single}}\cdot(1 + 25/10^{6})$ (E14). **Why it matters.** To move the anchor, an attacker must hold more than half of the depth that votes on the pair, more than all its honest pools together, measured from reserves and liquidity that a donation does not move (`_depthWeightedMedian`; breakdown point 50 %) — capital at risk, not a free donation. The standing guarantee: **a split never pays less than the best single pool.** Measured against an exhaustive grid at commit `969bcc6` on four chains, the Solver's route is never more than 0.01 bps below the grid's best (Arbitrum −0.0072 bps; Optimism and Robinhood equal to the wei; on Base the Solver beat the grid by 1.18 bps). (§10) ### I-11 · The Iron-Law floor Φ **What.** A minimum output re-derived **on chain, at execution**, from measured price impact and route concentration — independent of anything the caller supplied. **Math.** $\mathtt{floorBps} = \max(9{,}600 - \mathtt{legShv} - \min(\delta, 10^{4}) - \sigma_{\ln}/10^{14},\ 8{,}000)$ (E15), with the concentration shave $\mathtt{legShv} = \sum_{\mathrm{hops}} \lfloor 200\,((\sum a)^{2} - \sum a^{2})/\sum a^{2} \rfloor$ (E23); delivery must clear $\mathtt{effMin} = \max(\mathtt{userMinOut},\ \mathtt{route.singleOutFloor},\ \lceil \mathtt{finalHopQuote}\cdot\mathtt{floorBps}/10^{4}\rceil)$ (E16). **Why it matters.** Caller data can only tighten protection, never loosen it. When an attacker moves 1 % of the pool's depth around the trade, the victim loses 2.22 % against the quote; from a 3 % move the floor **refuses** and the attacker's round trip turns negative (CI at `969bcc6`). (§11.5, §14.3) ### I-12 · Measurement at every seam **What.** The Router never believes a transfer happened; it measures. Every pull, every hop's arrival and every delivery is a real balance delta, from the first instruction of the swap to the recipient's wallet. **Math.** Each hop is rescaled against its measured arrival; fee-on-transfer tokens on constant-product legs are priced on the difference the pool actually sees, the exact quantity the pool's own invariant will check. **Why it matters.** Tokens that tax, rebase or misreport cannot push the Router into promising what it does not hold — and the Router holds **no user funds at rest** between transactions (INV-1); the only balance it keeps is a fee share a token refused to deliver, booked to its treasury slot. (§11.2, §11.4) ### I-13 · The One-Callback Doctrine **What.** One `fallback` answers the flash-accounting callback of every V3-shaped venue — Uniswap V3, Algebra, Pancake V3, Sushi V3, the concentrated Solidly forks — with the in-flight leg context held in EIP-1153 transient storage. **Math.** The owed amount is read from the signs of the two deltas, the token from the in-flight leg context; payment is bounded three ways — only the committed pool, only while a leg is in flight, never more than the leg's recorded budget (INV-10). **Why it matters.** One small, triple-guarded entry point replaces a zoo of per-fork callbacks — less bytecode, less surface, one thing to verify. (§11.4) ### I-14 · The Surplus Rule and immunity by exhaustion **What.** A 0.28 % fee, compiled in, charged once on the first bridge coin the Router holds — and **no fee term that grows with the gap between quote and delivery.** **Math.** $\mathrm{fee} = \lceil 28 \cdot \mathrm{base} / 10^{4} \rceil$, split $t_{1} = \lfloor 3{,}000\cdot\mathrm{fee}/10^{4} \rfloor$, $t_{2} = \mathrm{fee} - t_{1}$ (E17); the regime predicate $\mathrm{feeHop} = \min\{h : \mathrm{isBridge}(\mathrm{hops}[h].\mathrm{tokenIn})\}$ (E26). A route that avoids every bridge pays on every hop, so no dust prefix can carry the fee away. **Why it matters.** Where the fee is charged on an input, everything the pools deliver above the quote reaches you in full; on a direct route into a bridge coin it is 28 bps of the gross delivery, surplus included. The fee cannot be raised against a trader or lowered for a favoured integrator — nobody holds that key. (§13) ### I-15 · The byte–gas exchange rate ρ* **What.** The four doors of the Router are an affine cost model made into an interface: solve on chain, or carry a pre-solved route in calldata — whichever is cheaper on that chain. **Math.** Carry the route in calldata iff $p_{\mathrm{byte}} < \rho^{*}$, with $\rho^{*}$ measured at 66.9–105.5 gas per byte by route shape (E22). **Why it matters.** Every chain has a price for bytes and a price for computation. BlazePhoenix measures the exchange rate between them and hands the trader the cheaper door. (§17.6) ### I-16 · The anti-scam projector Ξ **What.** Any pool whose V4 hook declares delta-altering permissions is removed from the candidate set **before ranking**, without the hook ever being called. **Math.** $\Xi(R) \in \{0,1\}$ in the Meta-Equation, evaluated by the E18 bit test on the hook's address. **Why it matters.** A hostile hook never gets the chance to lie: it is never asked. Three independent layers — address bits, a codehash-pinned allow-list, and Ξ — stand between a trader and a malicious venue. (§5.5, §14.2) ### I-17 · The One-Way Door **What.** Administrative authority ends irreversibly, in bytecode. `renounceControl` writes a flag that no code path can unset; after it, only a grow-only curator tier remains, and each treasury can still move its own fee slot (`moveTreasury`) and claim what that slot is owed. **Why it matters.** "We won't touch it" becomes "we can't touch it." The fee, the split and the floors were never settable to begin with (INV-4); after the door closes, nothing else is either, except that each treasury can redirect its own share of the fee. (§14.7) ### I-18 · Metrological Design and the published denominator **What.** The discipline behind all of the above — measure every coordinate that can be measured, re-home what cannot be measured to a source no caller controls, make the rest monotone so a false input hurts only its supplier — and a verification apparatus that reports **every number beside its denominator**. **Math.** At DEX commit `969bcc6`: 54 stateful invariants across 18 files, 1,895 registered mutants and 4 Certora specifications; 3,517 declared test functions in 515 files, of which 3,562 tests ran in CI (suite and fork lane); in the CI run at that commit, 1,753 mutants ran and all were caught, each registered mutant paired with the test that must fail; covering arrays over the regime factors of strength 2 (60 rows, 237 pairs) and 3 (145 rows, 1,441 triples), every row run passing; 15 Halmos checks reporting `[PASS]` in the CI run at commit `6387350` (Appendix B.3), and properties specified in `certora/specs/` for the Certora Prover (Appendix B.5). **Why it matters.** Most projects publish a test count. BlazePhoenix publishes how its evidence could be gamed and what it measures against — and recomputes it on every commit. (§2, §15) ### I-19 · The Gate: a venue is data behind an immutable wrapper [candidate: first must be falsifiable] **What.** A venue outside the native families enters through the Gate as an immutable wrapper, one per venue, armed after a 48-hour delay, at most four wrappers per token pair. No permissionless input chooses a venue's shape: a new venue is data behind a wrapper, not a new branch in the dispatcher. **Math.** `ADAPTER_DELAY` = 48 hours (`BlazePhoenixGate.sol:76`); `GATE_MAX_WRAPPERS` = 4 (`BlazePhoenixCore.sol:192`); the external kind is kind 9 (`BlazePhoenixCore.sol:320`), with a quote-gas constant `GATE_QUOTE_GAS` = 500,000 (`BlazePhoenixCore.sol:3271`), at commit `6387350`. **Falsifiable claim.** No permissionless input chooses a venue's shape; a new venue family is code behind immutable wrappers, and its adapter is armed only 48 hours after it is proposed, with the code pinned at proposal (`ADAPTER_DELAY`; `acceptAdapter` refuses before the delay or if the code moved). Every wrapper call re-reads the armed adapter and refuses when there is none or its code left the pin. It fails if any call path lets an unarmed or caller-supplied wrapper be priced. **Why it matters.** The set of venues grows without the set of trusted code paths growing with it. (§4.5) ### I-20 · Monotonicity against the caller [candidate: first must be falsifiable] **What.** A number the caller supplies is accepted only where the function is designed so that a false value moves the result against the caller. This is the third legal exit for a caller-supplied number, beside measuring it and re-homing it to an immutable or sealed source. **Math.** For a caller number $c$ with measured value $c_0$, the result $u(c)$ to the caller satisfies $u(c) \le u(c_0)$ for every $c$ on the lying side of $c_0$; then no lie can beat the truth, and a monotone number may be computed off-chain without moving trust (§2.4). **Falsifiable claim.** For every caller-supplied number the protocol accepts, there is a test in which the lying side yields a result no better than the measured one. It fails at the first input where lying pays. **Why it matters.** Off-chain computation and honest hints cost nothing in trust, because a wrong hint costs only its sender. (§2.4) ### I-21 · One question, one producer [candidate: first must be falsifiable] **What.** A quantity that more than one place needs has one producer; each consumer writes down the question it asks, and where two questions differ without a parity pin, that is where the next instance of a defect would be. The register is a published instrument, catalogued in full in Appendix D. **Math.** At the pinned commits, the DEX shared-quantity register has 131 lines in 5 sections and the staking register has 37 lines (`SHARED_QUANTITIES.md`, `969bcc6` and `9958d5f`). **Falsifiable claim.** Every quantity computed in two places appears in the register with the question each consumer asks and a named test that fails when the answers diverge. It fails at a second computation the register does not list. **Why it matters.** The seam between two correct computations of one number is where a measured-versus-modelled drift hides; naming the producer closes it. (§2.5) ### The scoreboard Rows marked 2.3 carry commit `8916545` (measured 2026-09, Version 2.3); the others are read from the repositories or the CI run at `969bcc6`. | Measured property | Result | |---|---| | Stateful invariants in the DEX test tree (`969bcc6`) | **54 in 18 files** | | Mutants in the DEX mutation harness (`969bcc6`) | **1,895** registered; 1,753 run in CI at `969bcc6`, all caught | | Halmos checks reporting `[PASS]` (CI run at `6387350`, Appendix B.3) · Certora specifications (`969bcc6`; Certora: specified, Appendix B.5) | **15 · 4** | | Samples whose state did not move between quote and settlement that delivered the quoted output (240-sample delay study) | **64 / 64** | | Venue pathologies × doors that settle, refuse with a selector of ours, or revert whole with the balance untouched (`969bcc6`) | **20 / 20** | | Control actions whose refusal is exercised with its own revert code (2.3) | **31 / 31** | | Quantities computed in two places that a named test ties together (`969bcc6`) | **11 / 11** | | Regime-factor pairs in the strength-2 covering array; rows run, all passing (`969bcc6`) | **237 pairs · 60 / 60** | | Regime-factor triples in the strength-3 covering array; rows run, all passing (`969bcc6`) | **1,441 triples · 145 / 145** | | Optimiser builds of the quote maths in agreement, runs 1 / 300 / 20,000 (2.3) | **3 / 3** | | Preview → delivery across four chains (`969bcc6`, 12 rows, one Base row not executed) | **0 bps** | | Solver route vs. an exhaustive grid, four chains (`969bcc6`) | **never more than 0.01 bps below the grid's best** | | Victim's loss against the quote when an attacker moves 1 % of depth (`969bcc6`); the floor refuses from a 3 % move | **2.22 %** | ## Contents - The Innovations (I-1–I-18; I-19–I-21 are marked candidates) and the scoreboard - **Part I — The problem and the discipline** - §1 The problem: a quote is a promise someone else computed - §2 The answer and the discipline - §3 The Meta-Equation and the dependency budget - **Part II — The primitives** - §4 The Eightfold Dispatcher Ω - §5 Uniswap V4 end to end - §6 The Solidly solver - §7 Deterministic Derivation 𝒟 - §8 The Monoslot - §9 The Self-Healing Registry and the Vitality Field Ψ - §26 The machine underneath - **Part III — Routing and execution** - §10 Routing and the Split Allocator - §11 The execution layer and the Iron-Law floor Φ - §12 Quote surfaces, and how a quote ages - §13 Fee policy: the two regimes and the Surplus Rule - **Part IV — Security and verification** - §14 Security model - §15 The verification apparatus, measured - **Part V — Architecture, performance and deployment** - §16 Architecture and sizes - §17 Measured performance - §18 The DEX, stripped to the bone - §19 Deployment status - §27 Interfaces: the SDK, the MCP servers, the API and the Hermes plugin - **Part VI — Staking V4** - §25 Staking V4: Design - **Part VII — The token, the research programme and what you must trust** - §20 Token — BZPX - §21 Research programme - §22 What you must trust, and what you need not - §23 Related work - §24 Conclusion - Revision history - Appendix A · The primitive equations - Appendix B · The invariants - Appendix C · Reproduction commands - Appendix D · The shared-quantity catalogue - Appendix E · The venues - Glossary - References - How to cite