Concepts

Sealed-Bid Auction

Changing in v3: v3 replaces the 30-second window with a single quote-collection deadline of about 0.5–2 seconds, after which the quote stays valid on-chain until its expiry ledger. Losing quotes are still discarded, so bids stay sealed. See v3 & Roadmap.

HyperDex uses a first-price sealed-bid auction. Every maker submits their best price in secret during a 30-second window. No maker can see what others have bid. The taker sees only the single best result after the window closes.

Why sealed bids?

Open auctions (where makers can see each other's bids) degenerate into minimal-increment games — makers undercut each other by fractions of a basis point rather than competing on true value. Sealed bids force each maker to bid their genuine best price, producing better outcomes for takers.

Why 30 seconds?

30 seconds is long enough for makers to consult external market data and calculate a confident price, but short enough that the quote does not become stale relative to market movements. Each signed quote carries its own on-chain expiry (120 seconds after signing by default in the maker SDK), which leaves time for the 10-second accept window and for signing and submitting the transaction.

Auction states

StateDurationWhat happens
collecting30 secondsBackend sends the RFQ to the top-ranked makers (capped by RFQ_MAX_MAKERS) via WS; makers submit sealed bids
completed10 secondsBest bid revealed to taker; taker decides to accept or reject
executingInstantTaker signs in Freighter; transaction submitted to Stellar
confirming~5 secondsWaiting for Stellar ledger confirmation
successTerminalTrade settled; tokens in taker wallet
no_quotesTerminalZero bids received; taker can retry
rejectedTerminalTaker declined the quote; no funds moved
HyperDex | Trade Without Limits