Skip to main contentSkip to FAQSkip to contact
For Solvers3 min read

Intent Netting & Batch Auction#

Phase 2 - fully designed, not yet in production.

  • Netting Offsetting flows cancel out - zero solver capital needed
  • UCCP Uniform pricing - every order in a batch pays the same bps
  • Efficiency Up to 95% gas savings on netted settlements

Batch Pipeline#

8-Stage Batch Pipeline

Mini Map
Actor
Engine
Contract
Network
  1. POST /v1/quotes → validates, assigns auction ID
  2. Order Book accumulates → 2-5s batch window per corridor
  3. Netting Pre-Processor → detects CoW, groups batches, finds rings
  4. Solver Broadcast → batched bundle via WebSocket
  5. CIP-67 Evaluator → reference outcome → fairness filter → surplus max
  6. Execution → batchClaim() for netted orders

CIP-67 Fair Winner Selection#

StepNameRule
1ReferenceBest standalone bid per order - the baseline
2FairnessReject any batch bid where ANY corridor gets less surplus than reference
3MaximizeFrom surviving bids, select combination maximizing total surplus

Surplus (per order, in bps of notional): (output_received − input_paid) / limit_price × 10000

Batch score (per corridor): Σ (surplus + fee) - aggregated across orders

UCCP (uniform clearing price, bps): (input − output) / input × 10000 - identical for all orders in the batch

All three values are expressed in bps of notional - positive surplus means price improvement vs. the taker's limit. A batch is only selected if every order's surplus ≥ its reference (standalone) surplus (Fairness rule).

Netting Modes#

Netting Mode Comparison

FeatureSimple Net
Batch NetIntermediate NetRing Net
Mechanics2 features
How
Two opposing intents matched P2P (CoW)Same-direction aggregated at uniform priceMulti-hop sharing intermediate token3+ intents forming directed cycle
Settlement
TEE atomic swapSingle batchClaim()Solver fills, intermediate cancelsTEE-linked revelation
Properties4 features
Solver capital
Oracle needed
Gas savings
~95%~80%~60%~95%
Complexity
LowLowMediumHigh

Examples per Mode#

The comparison above summarizes capital, oracle, and gas tradeoffs. The tabs below walk through one concrete example for each mode:

  • Two mirror intents, same corridor, opposite directions
  • P2P via TEE co-allocator - zero solver capital, no oracle
  • Example: Alice: Base USDC→OP USDT, Bob: OP USDT→Base USDC

Delivery Roadmap#

PhaseMilestoneScope
2aSimple & Batch NettingCoW detection, UCCP, batchClaim()
2bIntermediate & RingMulti-hop, cycle graphs, TEE revelation
3Persistent Order BookCross-chain CLOB, full combinatorial matching

See Also#

Related topics