OptionalbaseDeepBook charges trading fees in its own DEEP token, separate from the
coins being swapped. Callers must supply how much DEEP they're willing
to spend and, in deepCoin, a coin to draw it from — this is a real
cost the original conceptual routing.mdx example omitted entirely.
Optionaldeeptrue: swap the pool's base asset for its quote asset. false: quote for base.
Minimum acceptable output — the slippage guard.
Optionalquote
Amount of the input side to swap, in the input coin's own decimal units. Only used to auto-fund a fresh input coin from the sender's wallet — verified directly against the real
@mysten/deepbook-v3source (swapExactQuantityindist/transactions/deepbook.mjs), which doesbaseCoin ?? coinWithBalance({..., balance: convertQuantity(amount, ...)}). If you pass an explicitbaseCoin/quoteCoin(e.g. a coin produced earlier in the same PTB, as PayStreamer's routed-payment flow does), that coin's entire value becomes the input andamountis ignored.