कनेक्ट
Cover: Eightfold Dispatcher: आठ तरह के AMM के लिए एक quote फ़ंक्शन

Eightfold Dispatcher: आठ तरह के AMM के लिए एक quote फ़ंक्शन

अनुवाद · विरोध की स्थिति में अंग्रेज़ी संस्करण मान्य होगा। अंग्रेज़ी मूल पढ़ें ›

V2, V3, Algebra, Solidly, Uniswap V4 और native-ETH V4 — एक dispatcher किसी भी pool प्रकार के लिए आउटपुट, depth proxy और impact संकेत लौटाता है, और जहाँ नक़ल झूठ बोल सकती है वहाँ pool का अपना bytecode पूछता है।

Known formally as The Eightfold Dispatcher Ω in the BlazePhoenix whitepaper.

BlazePhoenix Engineering · article updated 2026-10-05 · site dataset through 2026-11-19 · 6 min · written from the deployed bytecode

एक नज़र में
औपचारिक नामThe Eightfold Dispatcher Ω
पढ़ने का समय6 min
अनुभाग3
अद्यतन2026-10-05

By Mitra (@Sigmacrit) — anonymous developer of the BlazePhoenix protocol. The code is the résumé.

हर AMM परिवार अलग गणितीय भाषा बोलता है: constant product (V2), square-root-price ticks (V3/Algebra), x³y+xy³ वाला stable curve (Solidly), hooks वाला V4 का singleton। Aggregator आम तौर पर इसे हर venue के लिए एक adapter कॉन्ट्रैक्ट से सँभालते हैं — ऐसी रखरखाव-सतह जो हर fork के साथ बढ़ती है। BlazePhoenix इसे एक dispatcher में समेट देता है: इसे अपने छह native प्रकारों में से कोई pool दीजिए, या वह external प्रकार जिसे Gate Balancer और Curve venues के लिए इस्तेमाल करता है, और एक इनपुट राशि दीजिए, और यह आउटपुट, split allocator के लिए एक depth proxy, और एक impact संकेत लौटाता है।

असल बात शाखा-सिद्धांत है: closed-form गणित वहाँ जहाँ सूत्र ही सच है (V2 का एकल-व्यंजक आउटपुट, जिसमें भाग आख़िरी चरण तक टाला जाता है, इसलिए एकमात्र राउंडिंग अंतिम floor है), और ASK-THE-POOL वहाँ जहाँ venue का अपना bytecode ही अकेला ईमानदार स्रोत है — Solidly का getAmountOut सीधे कॉल किया जाता है, क्योंकि जो कोड निष्पादन के समय invariant लागू करेगा, उसी ने यह संख्या बनाई, इसलिए quote और fill अलग नहीं हो सकते।

Constant-product शाखा, ठीक वैसी जैसी Core उसे निकालता है

Uniswap-V2-श्रेणी के pool के लिए, जिसमें reserves x (इन) और y (आउट) हों और शुल्क f basis points में हो, इनपुट Δx का सटीक आउटपुट एक single closed-form व्यंजक है, जिसमें भाग आख़िरी चरण तक टाला जाता है ताकि एकमात्र राउंडिंग अंतिम floor रहे:

Δy=Δx·(10000−f)·yx·10000+Δx·(10000−f)
Constant-product आउटपुट (Core.outV2)। Depth proxy = min(x, y); यही 30-bps डिफ़ॉल्ट निष्पादन पथ में भी दर्पण की तरह रखा गया है, ताकि quote और fill निर्माण से ही मेल खाएँ।

डिफ़ॉल्ट जो निर्माण से ही revert रोकते हैं

विश्वसनीयता ब्योरे में बसती है: बिना शुल्क के रजिस्टर हुआ V2 venue 30 bps पर डिफ़ॉल्ट होता है — सार्वभौमिक Uniswap-V2/Sushi शुल्क — जिसे निष्पादन पथ में बाइट-दर-बाइट दोहराया गया है, इसलिए quote pool की अपनी K जाँच से मेल खाता है और शुल्क का बेमेल swap को revert नहीं कर सकता। V4 की स्थिति singleton PoolManager से extsload के ज़रिए पढ़ी जाती है और slot लेआउट को canonical StateView से जाँचा गया है; delta बदलने वाले hooks का अनुमान लगाने के बजाय सीधे अस्वीकार कर दिया जाता है (fail-closed)।

एक dispatcher, आठ प्रकार, प्रति-venue शून्य adapters — और हर शाखा whitepaper में उसी सटीक सूत्र के साथ दर्ज है जिसे Core निकालता है।

इस पृष्ठ पर भरोसा न करें — खुद दोहराकर जाँचें

ऊपर का हर दावा ऑन-चेन जाँचा जा सकता है। यहाँ से शुरू करें:

Prepare and decode quotes for a V2 pair, a V3 pool and a Solidly stable pool (/api/quote/prepare, your node, /api/quote/decode): the decoded responses share one shape — one dispatcher, eight species
इस लेख का हवाला दें

CC BY-NC-ND 4.0 के अंतर्गत लाइसेंस प्राप्त: श्रेय और लिंक के साथ उद्धृत करें। व्यावसायिक उपयोग और व्युत्पन्न संस्करणों के लिए BlazePhoenix की लिखित अनुमति आवश्यक है; अनुवाद BlazePhoenix करता है। Copy a ready-made citation:

BlazePhoenix (2026). Eightfold Dispatcher: आठ तरह के AMM के लिए एक quote फ़ंक्शन. BlazePhoenix Engineering. https://blazephoenix.xyz/hi/learn/eightfold-dispatcher/
@misc{blazephoenix_eightfold_dispatcher,
  title  = {Eightfold Dispatcher: आठ तरह के AMM के लिए एक quote फ़ंक्शन},
  author = {BlazePhoenix},
  year   = {2026},
  url    = {https://blazephoenix.xyz/hi/learn/eightfold-dispatcher/},
  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).

संबंधित इंजीनियरिंग

Next in Routing & pricing · 3 / 19
Why some Ethereum pairs quote differently here than the price you see elsewhere ›On a few Ethereum pairs — stablecoins and correlated assets — our quote can sit below the market. The reason is a deliberate trust boundary, not arithmetic: that depth trades on venue families we excised by choice into our Ethereum registry. How to tell if it affects your trade.7 min

Questions, a partnership or a bug to report? Contact us or email contact@blazephoenix.xyz

Go to APP