Swap tokens directly on Sui through DeepBook v3 pools. DeepLens routes your swaps through the DeepBook on-chain order book for best execution.
A token swap exchanges one cryptocurrency for another in a single atomic transaction. Unlike centralized exchanges, swaps on Sui happen entirely on-chain — your tokens never leave your wallet's custody until the swap transaction is signed and confirmed.
DeepLens swaps route through DeepBook v3 on-chain order book pools on Sui mainnet. The swap widget fetches a quote from the /api/swap/build endpoint, then constructs a Sui transaction that you sign in your wallet. Settlement is final once the transaction is confirmed on chain.
Connect Your Wallet
Click the wallet button in the navigation bar. Any Sui-compatible wallet works (Sui Wallet, Suiet, Ethos, Martian, etc.).
Select Tokens
Choose the "Selling" token (top) and "Buying" token (bottom). Click the token selector to open a modal with all supported tokens. The flip button lets you reverse the pair instantly.
Enter Amount
Type the amount to sell, or click your balance to use the max. The widget automatically fetches a quote showing how much you will receive. Quotes refresh automatically as you type (with debouncing).
Review & Swap
Expand the details panel to see the exchange rate, price impact, and the amount you will receive. Click "Swap" to build and sign the transaction. You will see a confirmation once the on-chain transaction is finalized.
All coins available in the 24 DeepBook v3 pools on Sui mainnet:
| Symbol | Name | Decimals |
|---|---|---|
| SUI | Sui | 9 |
| USDC | USD Coin (native) | 6 |
| DEEP | DeepBook | 6 |
| WAL | Walrus | 9 |
| IKA | IKA | 9 |
| ALKIMI | ALKIMI | 9 |
| NS | SuiNS | 6 |
| TYPUS | Typus | 9 |
| ETH | Bridged ETH | 8 |
| SEND | SEND | 6 |
| AUSD | AUSD | 6 |
| DRF | DRIFE | 6 |
| XBTC | xBTC | 8 |
| WBTC | LayerZero WBTC | 8 |
| USDT | Tether (native) | 6 |
| suiUSDe | suiUSDe | 6 |
| usdSUI | usdSUI | 6 |
| wUSDC | Wormhole USDC | 6 |
| wUSDT | Wormhole USDT | 6 |
Price Impact
Price impact measures how much your trade moves the market price. Small trades on liquid pairs (like SUI/USDC) have negligible impact. Large trades on thin books may see significant impact. The quote widget displays the estimated price impact:
Slippage Tolerance
Slippage tolerance defines the maximum acceptable difference between the quoted price and the execution price. The default tolerance is 1% (configurable via environment variable). The tolerance is clamped to the range [0.1%, 50%].
If the price moves beyond your slippage tolerance between when you submit and when the transaction executes on-chain, the transaction will revert and no tokens will be exchanged.
The swap interface is a centered card widget with the following layout:
"Selling" panel: Token selector button, amount input field, wallet balance (clickable to fill max).
Flip button: Centered circular button to reverse the token pair.
"Buying" panel: Token selector button, computed output amount (live quote with loading spinner while fetching).
Action button: Shows "Connect Wallet" if disconnected, "Enter an amount" if no input, "Fetching quote..." during quote, or "Swap" when ready.
Details panel: Expandable section showing exchange rate, output amount, and price impact percentage.
Success state: Green confirmation banner with a link to view the transaction on SuiScan.