Skip to content

Swap & Router

One signature, every venue on Sui.

The Smart-Order Router quotes Aftermath's pools, every Sui DEX with a connectable API, and other Sui aggregators — then splits the trade across whichever sub-paths win and settles them in a single transaction.

Protocol fee
None
Aggregated protocols
26
Transactions to sign
1
Exact-out routing
Supported
DCA and limit orders
Zero fee
Short domain
af.lol

Smart-Order Router

Splitting a trade is a routing problem, not a UX one

A large swap rarely clears best on one venue. The router prices the whole Sui liquidity surface, decides how to divide the order across sub-paths, and then does the hard part: settling all of those legs atomically.

It also aggregates the other aggregators, so a quote is checked against the competition live rather than assumed to be best. When the output amount is what matters, exact-out routing works backwards from the amount you want to receive.

The swap surface also lives at af.lol, which is the same router behind a shorter domain.

“Routes always require the end user to sign just one transaction.”

A hot-potato object threads through the route's calls inside one Programmable Transaction Block and enforces slippage across the whole path. Either every leg settles within tolerance, or none of them do.

How a route is built

Quote, split, assemble, sign

Four steps between a quote request and a settled trade.

  1. Quote every venue

    The router quotes across Aftermath's own pools and every Sui DEX with a connectable API, then compares those quotes against other Sui aggregators live — an aggregator of aggregators, rather than a fixed venue list.

  2. Split across sub-paths

    One swap is split across multiple sub-paths when splitting beats any single route. Sizing is part of the route, not an afterthought bolted on at execution time.

  3. Assemble one PTB

    The sub-paths are assembled into a single Programmable Transaction Block. A hot-potato object threads through the calls and enforces slippage across the whole route, so a leg that comes back worse than the quote aborts the entire transaction.

  4. Sign once

    As the docs put it: routes always require the end user to sign just one transaction. There is no approval sequence and no per-leg signing.

Coverage

26 protocols, one quote

The venues the app is configured to quote today. The set changes as protocols ship and connect.

Any Sui DEX with a connectable API can be added, and other aggregators are quoted alongside these so the comparison stays honest.
  • Aftermath
  • BlastFun
  • Bluefin
  • BlueMove
  • Bolt
  • Cetus
  • DeepBook
  • DeepBookV3
  • DoubleUpPump
  • FlowX
  • FlowXClmm
  • FullSail
  • HopFun
  • Kriya
  • KriyaClmm
  • Magma
  • Metastable
  • Momentum
  • MovePump
  • Obric
  • SpringSui
  • Steamm
  • SuiAi
  • SuiSwap
  • Turbos
  • TurbosFun

Fees

What a swap costs

The router takes nothing. The only fee that can appear is one an integrator chooses to add.

Swap, DCA, and limit-order fees
SurfaceFeeNote
Smart-Order RouterNo protocol feeNo protocol fee is taken on trades performed through the Smart-Order Router
Integrator feeOptional, set per swapWhen an integrator sets one, Aftermath retains 2.5% of that fee
Aftermath front endsNoneNo integrator fee is charged on aftermath.finance or af.lol
DCAZero fee0.05 SUI is reserved per transaction for gas, refunded on completion or cancellation
Limit ordersZero feeFunds are reserved while the order is pending

DCA

Recurring buys on Sui's fast path

Dollar-cost averaging splits one allocation into a schedule of trades. The interesting part is the custody model: DCA uses a Sui-native k-of-n multisig, and Aftermath is given the address that owns the order object rather than the object itself.

That distinction is what lets a DCA trade take Sui's fast path instead of going through consensus. The order object is soulbound to the multisig and can never be transferred.

Each trade fires within ±30 seconds of its interval, so the schedule is not perfectly predictable and cannot be gamed. Gas is prepaid at 0.05 SUI per transaction and refunded when the order completes or is cancelled.

Fee
Zero
Execution window
Within ±30 seconds
Gas reserved
0.05 SUI per transaction
Gas refund
On completion or cancellation
Custody
k-of-n Sui multisig
Order object
Soulbound, non-transferable
Fee
Zero
Trigger
An exchange rate you set
Stop loss
Optional
Expiry
Optional
Recipient
Optionally an alternate address
While pending
Funds are reserved

Limit orders

Set a rate and walk away

A spot limit order sets the exchange rate you are willing to trade at. It can carry a stop loss, an expiry, and an alternate recipient address, so the filled output can land somewhere other than the wallet that placed it.

Funds are reserved while the order is pending, and there is no fee — the same zero-fee treatment as DCA.

Integrations

Where the router already runs

Wallets, apps, and bots that route through Aftermath rather than rebuilding a router.

Nightly

In-wallet swaps in the Nightly wallet route through the Aftermath Smart-Order Router.

Scallop

Scallop's Tools UI uses the router to move between assets without leaving the app.

Suiba

The Suiba Telegram bot executes swaps against router quotes from chat.

Dynamic Gas

Aftermath Dynamic Gas lets a user pay gas in a non-SUI coin: Aftermath sponsors the SUI and charges the chosen coin, using sponsored and programmable transactions. 25 coins are accepted.

FAQ

Frequently asked questions

Swap on the best route.

Quote across every venue on Sui, split the trade, and settle it in one transaction. No protocol fee.