Skip to content

How a swap settles

Abyss is a Request-for-Quote (RFQ) exchange. Instead of routing your trade through a public liquidity pool, Abyss sends your request to a network of solvers and settles the winning quote through a Midnight smart contract.

Abyss RFQ settlement flow Your swap request fans out to competing solvers. The best firm quote wins, your tokens lock in the settlement contract, and one atomic transaction pays both you and the solver. Your request 1,000 NIGHT ADA Solver 1 291.7100 ADA Solver 2 291.5800 ADA Solver 3 Best · Taken 291.8600 ADA Solver 4 290.2800 ADA Solver 5 290.6400 ADA Solver 6 291.7400 ADA Settlement contract Your 1,000 NIGHT is locked One transaction pays both Refunded if the quote expires You receive 291.8600 ADA Solver receives 1,000 NIGHT
RFQ settlement (example quotes). Solvers bid on your request from their own inventory. The best quote offered wins, and one transaction pays both you and the solver together.

Current rollout status

The multi-solver network is deployed on Midnight preprod. In the testnet app today, Abyss's own market maker quotes and fills every swap while external solver routing rolls into the app.

Four steps from quote to payout

  1. You ask for a price. Pick the tokens, their shielded or unshielded forms, and the amount you want to send. Every request goes out to solvers. Each solver prices it from its own inventory, and the best quote offered is the one you receive.
  2. You lock your tokens in the settlement contract. Your quote is fixed before you approve anything. One wallet approval locks the tokens you are selling inside the settlement contract on Midnight under that signed quote and a deadline.
  3. One transaction pays both sides. The winning solver fills your order through the settlement contract. The contract releases your locked tokens to the solver only in the transaction that delivers the quoted output to you.
  4. Full refund if the quote expires. If no solver fills your order before the deadline passes, nothing settles. You open Orders, select Refund, and the contract returns your tokens in full.

Why there is no public pool

Automated market makers (AMMs) publish pool balances and pricing curves on-chain. Anyone can inspect them, calculate price impact, and trade ahead of pending transactions.

Abyss has no liquidity pool and no public order book:

  • Solvers quote directly from their own inventory off-chain.
  • Quotes return privately to you; no resting order or pre-trade intent sits on the public ledger.
  • Only the settled swap reaches Midnight.

Nothing to front-run

Because your quote is fixed and verified by the settlement contract before your tokens move, transaction ordering inside a block cannot change your price:

  • A bot can land a trade in the block ahead of yours, but your quote stays fixed.
  • Your swap settles at the quoted price, or it expires and you get your tokens back.