BlazePhoenix V2 is pre-launch; independent audit not done yet. This describes the intended abstraction. Most aggregators carry a separate code path per DEX family, which is where bugs and blind spots breed. V2 defines one universal AMM primitive: a common interface of get-output and capacity that each curve family — constant product, Solidly-style stable, concentrated liquidity — implements against the same contract.

The universal AMM primitive: one abstraction over every curve
How BlazePhoenix V2 routes across constant-product, stable and concentrated-liquidity pools through a single mathematical interface instead of per-DEX handlers. Pre-audit design.
Known formally as The Universal AMM Primitive in the BlazePhoenix whitepaper.
BlazePhoenix Engineering · article updated 2026-08-05 · site dataset through 2026-12-02 · 7 min · written from the deployed bytecode
| Formal name | The Universal AMM Primitive |
|---|---|
| Reading time | 7 min |
| Sections | 2 |
| Sources cited | 2 |
| Updated | 2026-08-05 |
By Mitra (@Sigmacrit) — anonymous developer of the BlazePhoenix protocol. The code is the résumé.
Abstract in 15 languages · resumo · resumen · 摘要 · 要旨 · ملخص
English — Most aggregators carry a separate code path per DEX family, which is where bugs breed; BlazePhoenix V2 defines one universal AMM primitive — a common get-output and capacity interface that constant-product, Solidly-style stable and concentrated-liquidity curves all implement — so adding a venue means implementing the primitive, not touching the router, and the attack surface does not grow with integrations. Pre-audit design.
Português — A maioria dos agregadores mantém um caminho de código separado por família de DEX, e é aí que os bugs proliferam; a BlazePhoenix V2 define uma primitiva universal de AMM — uma interface comum de get-output e capacidade que as curvas de produto constante, estáveis ao estilo Solidly e de liquidez concentrada implementam todas — de modo que adicionar uma venue significa implementar a primitiva, não tocar no router, e a superfície de ataque não cresce com as integrações. Desenho pré-auditoria.
Español — La mayoría de los agregadores llevan un camino de código separado por familia de DEX, y ahí es donde crían los bugs; BlazePhoenix V2 define una primitiva universal de AMM — una interfaz común de get-output y capacidad que implementan por igual las curvas de producto constante, estables estilo Solidly y de liquidez concentrada — de modo que añadir una venue significa implementar la primitiva, no tocar el router, y la superficie de ataque no crece con las integraciones. Diseño pre-auditoría.
Français — La plupart des agrégateurs portent un chemin de code distinct par famille de DEX, et c'est là que naissent les bugs ; BlazePhoenix V2 définit une primitive AMM universelle — une interface commune de get-output et de capacité qu'implémentent aussi bien les courbes à produit constant, stables façon Solidly et à liquidité concentrée — si bien qu'ajouter une venue revient à implémenter la primitive, pas à toucher le routeur, et la surface d'attaque ne croît pas avec les intégrations. Conception pré-audit.
Deutsch — Die meisten Aggregatoren führen pro DEX-Familie einen eigenen Codepfad — genau dort brüten Bugs; BlazePhoenix V2 definiert eine universelle AMM-Primitive: ein gemeinsames Get-Output- und Kapazitäts-Interface, das Constant-Product-, Solidly-Stable- und Concentrated-Liquidity-Kurven gleichermaßen implementieren. Eine Venue hinzufügen heißt, die Primitive zu implementieren, nicht den Router anzufassen, und die Angriffsfläche wächst nicht mit den Integrationen. Pre-Audit-Design.
Русский — Большинство агрегаторов держат отдельный код-путь на каждую семью DEX — именно там плодятся баги; BlazePhoenix V2 определяет один универсальный примитив AMM: общий интерфейс get-output и ёмкости, который реализуют кривые постоянного произведения, стабильные в стиле Solidly и концентрированной ликвидности. Добавить площадку — значит реализовать примитив, не трогая роутер, и поверхность атаки не растёт с интеграциями. Дизайн до аудита.
Türkçe — Çoğu toplayıcı her DEX ailesi için ayrı bir kod yolu taşır ve hatalar tam orada ürer; BlazePhoenix V2 tek bir evrensel AMM ilkeli tanımlar — sabit-çarpım, Solidly tarzı stabil ve yoğunlaştırılmış likidite eğrilerinin hepsinin uyguladığı ortak bir get-output ve kapasite arayüzü — böylece mekân eklemek ilkeli uygulamak demektir, yönlendiriciye dokunmak değil, ve saldırı yüzeyi entegrasyonlarla büyümez. Denetim öncesi tasarım.
العربية — معظم المجمّعات تحمل مساراً برمجياً منفصلاً لكل عائلة DEX، وهناك تتكاثر الأخطاء؛ تعرّف BlazePhoenix V2 بدائية AMM شاملة واحدة — واجهة موحّدة للمخرجات والسعة تنفّذها منحنيات الجداء الثابت والمستقرة على طريقة Solidly والسيولة المركّزة جميعاً — فإضافة منصة تعني تنفيذ البدائية لا لمس الموجّه، ولا يكبر سطح الهجوم مع التكاملات. تصميم قبل التدقيق.
हिन्दी — अधिकांश एग्रीगेटर हर DEX परिवार के लिए अलग कोड-पथ रखते हैं, और वहीं बग पनपते हैं; BlazePhoenix V2 एक सार्वभौमिक AMM प्रिमिटिव परिभाषित करता है — get-output और क्षमता की साझा इंटरफ़ेस जिसे स्थिर-गुणनफल, Solidly-शैली स्थिर और संकेंद्रित-तरलता वक्र सभी लागू करते हैं — यानी नई venue जोड़ना प्रिमिटिव लागू करना है, राउटर छूना नहीं, और एकीकरणों के साथ हमले की सतह नहीं बढ़ती। पूर्व-ऑडिट डिज़ाइन।
日本語 — 多くのアグリゲーターはDEXファミリーごとに別のコードパスを抱え、そこがバグの温床になります。BlazePhoenix V2は一つの普遍AMMプリミティブを定義します。定積、Solidly型ステーブル、集中流動性の各カーブがすべて同じget-outputと容量のインターフェースを実装するのです。会場の追加はプリミティブの実装であってルーターへの変更ではなく、統合が増えても攻撃面は広がりません。監査前の設計です。
中文 — 多数聚合器给每个 DEX 家族维护一条独立代码路径,而 bug 正是在那里滋生;BlazePhoenix V2 定义了一个通用 AMM 原语——恒定乘积、Solidly 式稳定曲线与集中流动性曲线都实现同一套求输出与容量接口——于是接入新场所意味着实现该原语,而非改动路由器,攻击面不随集成数量增长。审计前设计。
한국어 — 대부분의 애그리게이터는 DEX 계열마다 별도의 코드 경로를 두는데, 버그는 바로 거기서 번식합니다. BlazePhoenix V2는 하나의 보편 AMM 프리미티브를 정의합니다 — 상수곱, Solidly식 스테이블, 집중 유동성 곡선이 모두 구현하는 공통의 출력·용량 인터페이스입니다. 장소를 추가한다는 것은 프리미티브를 구현하는 일이지 라우터를 건드리는 일이 아니며, 통합이 늘어도 공격 표면은 자라지 않습니다. 감사 전 설계.
Bahasa Indonesia — Kebanyakan agregator membawa jalur kode terpisah per keluarga DEX, dan di situlah bug berkembang biak; BlazePhoenix V2 mendefinisikan satu primitif AMM universal — antarmuka get-output dan kapasitas yang sama yang diimplementasikan kurva produk-konstan, stabil gaya Solidly, dan likuiditas terkonsentrasi — sehingga menambah venue berarti mengimplementasikan primitif itu, bukan menyentuh router, dan permukaan serangan tidak tumbuh seiring integrasi. Desain pra-audit.
বাংলা — বেশিরভাগ অ্যাগ্রিগেটর প্রতিটি DEX পরিবারের জন্য আলাদা কোড-পথ রাখে, আর সেখানেই বাগ জন্মায়; BlazePhoenix V2 একটি সর্বজনীন AMM প্রিমিটিভ সংজ্ঞায়িত করে — get-output ও সক্ষমতার এক অভিন্ন ইন্টারফেস, যা স্থির-গুণফল, Solidly-ধাঁচের স্থিতিশীল ও কেন্দ্রীভূত-তারল্য বক্ররেখা সবাই বাস্তবায়ন করে — ফলে নতুন ভেনু যোগ মানে প্রিমিটিভ বাস্তবায়ন, রাউটার ছোঁয়া নয়, এবং ইন্টিগ্রেশনের সঙ্গে আক্রমণ-পৃষ্ঠ বাড়ে না। প্রি-অডিট নকশা।
Filipino — Karamihan ng aggregator ay may hiwalay na code path bawat pamilya ng DEX, at doon namumuo ang mga bug; ang BlazePhoenix V2 ay nagtatakda ng iisang unibersal na AMM primitive — iisang get-output at capacity na interface na ipinapatupad ng constant-product, Solidly-style stable at concentrated-liquidity na mga curve — kaya ang pagdaragdag ng venue ay pagpapatupad ng primitive, hindi paggalaw sa router, at hindi lumalaki ang attack surface kasabay ng mga integrasyon. Disenyong pre-audit.
Why one interface is safer
When every pool answers the same two questions in the same units, the router reasons about routes without knowing which venue it is on. Adding a venue means implementing the primitive, not touching the router, so the surface that can go wrong does not grow with integrations. It is the taxonomy of AMM math reduced to a single, testable contract boundary.
One interface also means one test surface. Properties such as output never exceeding a pool's live capacity, or a larger input never producing a smaller output, are stated once against the primitive, and every curve family inherits them — so a new venue arrives with the full battery of invariant checks on day one instead of a fresh hand-written handler with fresh hand-written bugs.
Do not trust this page — reproduce it
Every claim above is checkable against the chain. Start here:
Compare a stable-pool quote from the primitive to the pool own getAmountOut on chain; the universal path should match the venue within a tight toleranceCite this article
Licensed CC BY-NC-ND 4.0: quote and cite it with attribution and a link. Commercial use and derivative versions need written permission from BlazePhoenix; translations are made by BlazePhoenix. Copy a ready-made citation:
BlazePhoenix (2026). The universal AMM primitive: one abstraction over every curve. BlazePhoenix Engineering. https://blazephoenix.xyz/learn/universal-amm-primitive/@misc{blazephoenix_universal_amm_primitive,
title = {The universal AMM primitive: one abstraction over every curve},
author = {BlazePhoenix},
year = {2026},
url = {https://blazephoenix.xyz/learn/universal-amm-primitive/},
note = {Accessed: reproduce the claim with the command above}
}Writing an answer, a wiki entry or a paper? The claim above is reproducible against the chain before you quote it — which is the only sound basis for citing a technical source at all.
Contracts are verified on every chain we deploy to — addresses in the protocol manifest. Deeper formal treatment: the whitepaper (PDF). Sources cited: arxiv.org: 2204.05238 · arxiv.org: 2510.05428
Related engineering
- The mathematics of every AMM family, compared ›
- Quoting the Solidly curve on-chain: Newton's method where the naive seed lies ›
- Which DEXes BlazePhoenix routes across, on every chain — and how to verify it yourself ›
- BlazePhoenix V2: gasless, chain-agnostic, and engineered so whole classes of bug cannot occur ›
Questions, a partnership or a bug to report? Contact us or email contact@blazephoenix.xyz