Skip to content
UMBRA
Terminal

Umbra Sealed Call Auction Mechanics

Purpose

A call auction batches compatible orders into a common clearing event. Umbra's proposed design hides order intent during the commitment window and clears eligible orders at a uniform price.

Epoch state machine

OPEN → LOCKED → REVEAL → CLEAR → SETTLE → FINALIZED

Exceptional path: OPEN/LOCKED/REVEAL/CLEAR → ABORTED.

Clearing algorithm (single market)

For each candidate price p:

  • B(p) = Σ quantity of buy orders with limitPrice >= p
  • S(p) = Σ quantity of sell orders with limitPrice <= p
  • V(p) = min(B(p), S(p)) Choose a price maximizing V(p). Resolve ties using a published deterministic rule. A candidate tie-break sequence is: minimize absolute imbalance, then minimize distance from a precommitted reference price, then choose a deterministic side-independent final tie-break.

Allocate marginal price-level fills pro-rata. Use integer fixed-point arithmetic and deterministic remainder allocation. Every order is bounded by its signed quantity and reserved collateral.

Must decide before code

  • Epoch length and market-specific schedule.
  • Whether users can cancel before lock.
  • Whether reveal is public, private, committee-decrypted or ZK-proven.
  • Tie-break reference source and freshness.
  • Partial fills and time-in-force.
  • Reveal failure / withholding penalties.
  • Unmatched order carry-forward rules.
  • External residual hedge policy.
  • Rounding, tick size, lot size and dust policy.

Security invariants

  • Total buy fills = total sell fills for internal matches.
  • No fill exceeds eligible order quantity.
  • No duplicate commitment consumption.
  • Same normalized input set always yields same result.
  • Invalid / late reveal cannot enter a finalized auction.
  • Abort releases reserved collateral exactly once.
  • Settlement is atomic or has a formally specified recovery procedure.

Example (illustrative only)

A market has buy demand of 12 units at or above 100 and sell supply of 9 units at or below 100. Executable volume at 100 is 9. This example explains the formula; it is not market data or a claim about live Umbra activity.

NextClearing engine→