Skip to content

One swap, two sources.

The pool fills its cap. A wallet fills the rest.

WalletDesk architecture: maker wallet, Aqua registry, WalletDeskRouter, OverflowHook, v4 PoolManager, any v4 router, DeskPriceFeed, and the Chainlink CRE desk-guard workflow
  1. 01

    A maker ships a desk

    A DeskBand on Aqua. No tokens move.

  2. 02

    It is registered

    The hook stores the maker's limit. Up to 8 desks.

  3. 03

    A large swap arrives

    Any v4 router. Desks outside the spot or CRE reference are dropped.

  4. 04

    The best desk fills

    The wallet pays the rest through SwapVM.

  5. 05

    The pool fills its cap

    If the desk fails, the pool fills the whole swap.

A skip never blocks the swap

  • No quoteEmpty shelf or a bad band.
  • Wallet unfundedReal balance or Aqua allowance is short.
  • Off the pool spotOutside the maker's deviation of the pool price.
  • CRE missingA feed is set, but the price is missing or stale.
  • Off the referenceOutside the maker's deviation of the CRE price.
  • Fill revertedThe pool takes the swap instead.

OverflowHook

DeskBand

desk-guard

Not audited. Threat model