# BlazePhoenix Litepaper

**The quote is the trade.**

*© 2026 BlazePhoenix. Text licensed under CC BY-NC-ND 4.0 (https://creativecommons.org/licenses/by-nc-nd/4.0/): share with attribution, no commercial use, no derivative versions without written permission. The contracts are licensed separately: source-available under BUSL 1.1 until the Change Date, then GPL v2.0 or later.*

*Version 2.4, 2026-11-21. A plain-language reading of the repositories at dated commits: the DEX at `e027c6e` (2026-11-20) and the staking contract at `a24115c` (2026-11-20). A section sign in brackets (§n) points to the published Technical Whitepaper 2.4.0 (https://blazephoenix.xyz/docs/BlazePhoenix_Whitepaper_v2.4.pdf, DOI 10.5281/zenodo.24517342); a file name in brackets points to that file in the repository at the commit above.*

---

## 1. What it is

- BlazePhoenix-Dex is a swap aggregator that lives on chain. It finds a route for your trade across many venues, and it does the work inside the same transaction that executes the trade (Abstract).
- The price you are shown comes from the same public code that executes your trade. There is no routing server, no price oracle and no upgrade path (Abstract).
- You set a minimum. At the same chain state you get the same quote; if the state moved, you receive at least your minimum or the swap reverts (Abstract, Ten lines).

---

## 2. The problem

When you swap on most aggregators, a server does the thinking. It looks at the venues, picks a route and shows you a number. You sign. Afterwards you can see what arrived, but you could not recompute what you were told beforehand.

Think of a price said out loud at a counter, against a receipt you can add up yourself. The first asks you to believe. The second lets you check.

Liquidity is also spread across many venues of many kinds. Finding a good split between them is real work, and someone has to do it (§1.1). If that someone is a server, the server becomes part of what you must trust (§1.2).

BlazePhoenix does that work in the open instead: the route is derived inside the transaction that executes it, from public on-chain state, by a library anyone can re-run (Abstract).

![A quote as a receipt](https://blazephoenix.xyz/litepaper/figs/receipt.svg)

*A number from a server is something you have to believe. A public call on your own node gives you the quote, and you can check it.*

---

## 3. How it works

Ten plain facts carry the design; here are the first five (Ten lines):

1. No server picks your route. The transaction that executes it derives it from public on-chain state.
2. No oracle prices your trade. The venues do, read in the frame that settles it.
3. The quote and the floor come from one evaluator, so there is no seam for the price to drift through.
4. Your minimum is mandatory. The Router refuses a swap without one.
5. A venue's claims are free to forge; its measured output is not. Routing runs on what is measured.

**The path of a swap.** The quote is a read-only call against published contracts. You can run it on your own node. The same contracts then execute the swap and check the result against your minimum and against a second floor that the protocol computes itself (Abstract, §11).

**One example you can check with a calculator.** You want to swap 100 tokens. Two venues hold the same pair, both with a 0.30 % venue fee. Venue A holds 1,000 on each side; venue B holds 4,000 (§10, Worked example 2).

| Route | You receive |
|---|---|
| All 100 into A | 90.661 |
| All 100 into B | 97.275 |
| 20 into A, 80 into B | 97.751 |

The split sends each venue a share in proportion to its measured depth: A takes 20 %. It beats the best single venue by 0.476 tokens, 48.9 basis points (one basis point is 0.01 %). The allocator splits only when the gain earns the extra leg, and here it does (§10, Worked example 2).

![Output against the share sent to the deeper venue](https://blazephoenix.xyz/litepaper/figs/split.svg)

*What you receive as the share sent to venue B changes. All into A, all into B and the 20 / 80 split are the three rows of the table above; the split is the top of the curve.*

**The fee.** The protocol takes 0.28 %, once, from one measured amount. The rate is a compile-time constant with no setter. It is split 30 / 70 between two treasuries, and the contract refuses to settle a swap that did not pay it (§13).

**New venues.** A venue outside the native families can only join through an immutable wrapper, after a 48-hour delay, with at most four wrappers per token pair (`src/BlazePhoenixGate.sol`, lines 76 and 78).

---

## 4. Why trust it: proofs you can measure

You do not need to take our word for the above. Every measurement below is printed next to its denominator, the number of things it was measured against (Ten lines, item 9). The counts are taken from the DEX repository at commit `e027c6e` (2026-11-20); a row with another source names it.

| What was measured | Result |
|---|---|
| Stateful invariants in the test tree | 54 in 18 files (`README.md`, repository statistics) |
| Mutants registered in the mutation harness, each paired with the test that must kill it | 1,937 (`README.md`, repository statistics) |
| Halmos properties and Certora specifications | 20 and 4 (`README.md`, repository statistics) |
| Declared test functions (`function test*`, `invariant*` or `check*` under `test/`) | 3,623, in 522 test files (`README.md`, repository statistics) |
| Venue pathologies against both doors | 20 / 20 settle, or refuse with an error of our own (`docs/assurance/VERIFICATION-REPORT-2026-09.md`) |
| Control actions whose refusal has its own revert code | 31 / 31 (Whitepaper 2.3.1, scoreboard) |
| Delay study, samples where the state did not move between quote and settlement | 64 / 64 delivered the quoted output, out of 240 samples (`docs/assurance/SWAP-TESTS-REPORT-2026-09.md`) |
| Quote against delivery on forks of live liquidity: Arbitrum, Base, Optimism, Robinhood Chain | 0 to 1 bps on every executed pair (§17.2) |
| Solver route against an exhaustive split grid | within 0.13 bps of the grid's best on Base; exact on Robinhood Chain (§17.2) |

A mutant is a one-line change to the contracts that a named test must turn red (Appendix C). It is a way of asking whether the tests can actually fail.

**What you do trust, listed in full.** A short list of powers exists, and each one is stated with the line that bounds it (§22):

- The Router's control key can redirect the fee destination (`setTreasuries`, line 328), pause swaps (`setPaused`, line 358) and repoint the WETH and Permit2 contracts that the native and Permit2 doors call (`setWeth` and `setPermit2`, lines 356 and 357). Each of these takes effect at once. Only the recovery of mis-sent tokens waits behind a 48-hour public delay (`queueRescue` and `executeRescue`, lines 389 to 410). The key cannot move the fee rate, the split or the floors, because they are compiled in. It cannot reach your principal: there is no proxy, no upgrade path, no `selfdestruct` and nothing held between trades (`src/BlazePhoenixRouter.sol`; §14.6, Ten lines).
- The venue registry and the hook allow-list are curated. A bad listing can cost you price, but never below the stricter of your minimum and the protocol floor (§22).
- The site and the app add no trust to the trade. The quote is reproducible on your own RPC and the swap is bounded by your minimum, whatever the page shows (§22).

You do not need to know who we are. You need to know what the contracts let us do, and that list is public.

**Read it, build it, run it.** The DEX source is source-available under BUSL 1.1 until the Change Date, then GPL v2.0 or later. You may read it, build it and run it to check our claims. The Change Date is 2030-06-01 at the latest (`LICENSE`).

**Independent readers.** On 2026-11-20, 76 researchers were credited in `SECURITY_HALL_OF_FAME.md` for reading the source hostilely and disclosing privately. The invitation stays open: reports are triaged now, and award payouts begin after the 15 December 2026 launch. Awards are paid in BZPX, with quantity and schedule promised and market value not (§21).

**If our servers vanished.** If every server we run disappeared tonight, the contracts would quote, route and settle tomorrow (Ten lines).

![The floor: three outcomes](https://blazephoenix.xyz/litepaper/figs/floor.svg)

*A swap settles only if it clears both your minimum and the protocol floor. Miss either one and the whole swap reverts.*

---

## 5. Token and staking

**BZPX.** One billion BZPX, fixed for ever, as a plain ERC-20: 18 decimals, no mint path, no fee-on-transfer, no rebasing, no transfer hooks, no pause or blacklist (§20). The allocation is the one the project serves at `/facts.json`.

| Allocation | Tokens | Share |
|---|---|---|
| Market liquidity | 520,000,000 | 52.0 % |
| Staking emission | 180,000,000 | 18.0 % |
| Airdrop and Bounties | 130,000,000 | 13.0 % |
| Team and operations | 103,000,000 | 10.3 % |
| Partners and ecosystem | 60,000,000 | 6.0 % |
| Marketing | 7,000,000 | 0.7 % |

(§20, `/facts.json`.) The team tranche is the only locked insider tranche, with 30-month linear vesting (§20). At the time of writing the token has no provisioned liquidity and no token generation event; a zero on-chain volume is the expected state of this stage (§20).

![Allocation of 1,000,000,000 BZPX](https://blazephoenix.xyz/litepaper/figs/allocation.svg)

*The same table as one bar. Staking is drawn as two equal halves, one for each deployment.*

**Staking.** Staking is two independent deployments of the same contract, one on Base and one on Robinhood Chain, with 90,000,000 BZPX each (`TOTAL_REWARDS` in `src/BlazePhoenixStaking.sol`). Each has its own contract, its own reward reserve and its own emission clock of 8 years. Nothing crosses from one to the other. The two caps add up to the 180,000,000 staking line above (§20). The launch is scheduled for Q2 2027, and it is a schedule, not a deployment (`/facts.json`). This litepaper gives no yield figure.

**The circuit breaker, in one picture.** Think of the trip switch in a fuse box. Anyone can flip it, but only when the meter shows a shortfall: the contract's balance is below what it owes (`tripBreaker`). A guardian key can also flip the same switch for a problem found off chain (`declareEmergency`). Flipping it moves no money. It stops the contract: deposits, borrowing, locks, liquidations, ordinary withdrawals, repayments and reward claims all close, and interest and emission stop where they are. One door stays open, the emergency exit: each staker takes out their stake minus any debt, gives up unclaimed rewards, and is scaled down pro rata if the contract is short (`emergencyWithdraw`). Only the admin can end the emergency, and only once the shortfall is gone (`cancelEmergency`). Ending it reopens withdrawals, repayments and reward claims; deposits, borrowing, locks and liquidations wait for a separate admin step (`unpause`).

You can check solvency yourself with `isSolvent()`. The breaker is a rule for dividing a loss, not a promise that there will never be one.

---

## 6. Roadmap

| When | What | Source |
|---|---|---|
| Now | V1, version 1.0.0, is live for testing on Ethereum, Base, Optimism, Arbitrum and Robinhood Chain | `/facts.json`, `README.md` |
| 15 December 2026 | V2 launches on its target networks: Ethereum, Base, Optimism, Arbitrum, Robinhood Chain and Avalanche C-Chain | `/facts.json`, `README.md` |
| After 15 December 2026 | Award payouts to independent researchers begin | §21 |
| Q2 2027 | Staking: 90,000,000 BZPX on Base and 90,000,000 BZPX on Robinhood Chain | `/facts.json` |

V1 and V2 are different codebases and are never mixed up (§19). The measurements in section 4 describe V2 as it stands at the cited commits; they do not describe V1 (§19). The networks above are targets, not deployments. V2 and staking have no address yet. When they deploy, each deployment record will state chain, address, deploying commit and bytecode hash, so that an address check becomes arithmetic and not trust (§19). This paper gives no contract addresses on purpose: addresses outlive the documents that quote them (§19).

---

## 7. Where to read more

- **Technical Whitepaper 2.4.0:** https://blazephoenix.xyz/docs/BlazePhoenix_Whitepaper_v2.4.pdf (DOI 10.5281/zenodo.24517342). Every mechanism is given as a plain sentence first and a precise one second, with worked examples (How to read this paper).
- **Verification reports:** https://blazephoenix.xyz/verification-report-2026-09.md and https://blazephoenix.xyz/swap-tests-report-2026-09.md.
- **Known issues:** `docs/KNOWN_ISSUES.md` in the DEX repository. It is the repository's own list of limits and the boundary of every claim above (§15.11).
- **DEX repository:** https://github.com/blazephoenixxyz-crypto/Blaze-Phoenix-Dex
- **Staking repository:** https://github.com/blazephoenixxyz-crypto/Blaze-Phoenix-Staking

The repository is canonical. Where this text and the source disagree, the source wins (§19). If you keep one habit from all this, make it the minimum you set on your own trades: it is the protection whose quality depends on nobody's competence but yours (§22).
