# The BlazePhoenix V2 primitives: safety as a small set of public invariants

> Canonical: https://blazephoenix.xyz/learn/v2-primitives
> License: CC BY 4.0 (attribution + link) · © 2026 BlazePhoenix
> Updated: 2026-08-05



BlazePhoenix V2 is pre-deployment and under audit; this is the map of its design, not a description of live mainnet behaviour. The system is built from a small set of primitives, each carrying one invariant, and the router is the composition of those invariants. We publish the shape of each primitive on purpose: a guarantee you cannot inspect is not a guarantee. We do not publish the internal construction — that is what the audit is for, and what the bounty pays you to probe.

## The set

Pricing defense is a manipulation-robust median with a bounded robustness band, so no single poisoned pool can move the number. Routing reaches every venue through one universal AMM abstraction instead of per-DEX adapters, so the surface does not grow with integrations. Every route carries a computable gas bound, so it cannot be gas-bombed into an expensive revert. Settlement measures what actually arrived rather than trusting arithmetic, which is the anti-honeypot result-verification step.

Above these sits the meta-equation: every enforced quantity is an invariant projected onto measured state, never onto a nominal claim. And every invariant is stated stochastically, so it holds across the distribution of states an adversary can steer toward, not merely at the average.

## Public shape, private recipe

This line is deliberate. The invariants, the floors, the bands and the interfaces are public, so anyone can hold the protocol to them and reproduce its numbers. The exact construction that satisfies them stays in review until the audit clears. Open behaviour, verifiable guarantees, and no attack cookbook — that is the standard. If you think an invariant can be broken, the bug bounty is where you prove it and get paid.

**Verify it yourself:** Take any published invariant — the price band, the output floor — and try to construct an on-chain state that violates it; a reproducible violation is exactly what the bounty rewards

Related: https://blazephoenix.xyz/learn/v2-redesign-overview · https://blazephoenix.xyz/learn/median-4-percent-invariant · https://blazephoenix.xyz/learn/universal-amm-primitive · https://blazephoenix.xyz/learn/result-verification-primitive · https://blazephoenix.xyz/learn/bug-bounty
