Skip to main content

Using Pools

Swapping

Users can perform swaps between any two tokens supported by an existing pool. The DEX supports four main types of swap transactions:

  • Swap an exact amount in for as much output as possible

  • Swap to receive an exact amount out, using as little input as possible

  • Swap from token A to B, or B to A (bidirectional support)

  • Define minimum output amounts to avoid slippage beyond a user-defined tolerance

All swaps are processed directly on-chain and rely on reserve balances and price formulas defined by the pool type. Safety checks ensure slippage protection and enforce pause controls if needed.