Using PoffertSwap
Swap tokens
Swap one token for another through a pool, including tokens that have no pool together.
On this page
The Swap page trades one token for another. It works for every token that has a pool, for tokens still on their curve, and for two tokens that have no pool together.
How to swap#
- Open Swap.
- Under You pay, choose the token you give. It starts as SOL. Type an amount, or use Max.
- Under You receive, choose the token you want. You can search by name or ticker, or paste a token address.
- Check the details below the boxes.
- Press Swap and approve in your wallet.
The arrow between the two boxes swaps their places. You can also open a swap with the tokens already chosen from a link: the two tokens are in the address of the page (/swap?from=…&to=…), which is how the Buy and Sell buttons on a graduated token open it.
Reading the details#
| Line | Meaning |
|---|---|
| Rate | About how many tokens one unit of what you pay gets you. |
| Minimum received | The least you will accept, based on your slippage setting. If the pool would give you less, the swap is cancelled. |
| Price impact | How much your own swap moves the pool's price. |
| Fee | The swap fee. For a swap in two steps you see one line per step. |
| Route | Which markets the swap goes through. |
| Unspent SOL stays in your wallet | Only for two-step swaps, explained below. |
Price impact works like on the curve: it turns to a warning color above 3%, and above 15% you have to tick a box before the button works.
The three kinds of route#
- On a curveA token that is still on its curve is bought or sold on that curve, even from the swap page.
- Directly on a poolA graduated token, or any pair with a pool, swaps straight against that pool.
- Through SOLTwo tokens without a pool together are swapped in two steps, going through SOL.
Swaps through SOL#
Suppose you want to swap token A for token B, and no pool holds both. The app sells A for SOL and buys B with that SOL. All of it happens in one transaction and with one approval, so there is no moment where you hold only the SOL in between.
The exact amount of SOL you get from the first step is only known when the transaction runs. To keep you safe, the second step is funded with the guaranteed minimum of the first step, never with your hopes. So the amount of B you see is what that minimum buys. If the first step gives you a little more than its minimum, the extra stays in your wallet as SOL, and the page tells you roughly how much (Unspent SOL stays in your wallet).
SOL in pools#
Pools hold SOL in a wrapped form, called wrapped SOL, which behaves like any other token. You never have to deal with it. In the same transaction, the app wraps exactly the SOL you spend, swaps, and unwraps again. No wrapped SOL is left in your wallet.
What a swap costs#
- A pool that was created by a graduation charges 0.30%. A pool someone opened for a pair charges 0.25%.
- Swapping on a curve costs the usual 1.25%.
- Each swap also pays the tiny network fee.
The full breakdown is on the Fees page. For a worked example of how a pool decides how much you receive, see Pools and liquidity.
Limits to know#
- The Swap page works with exact amounts in: you choose how much you pay, and the pool decides what you get. (The program can also trade for an exact amount out, but the app does not offer it.)
- A curve that is full but not yet moved to its pool cannot be traded for a short moment (see Graduation).
- If you paste an address that is not a token, the page tells you.
- Tokens that use some advanced Token-2022 features are not accepted in pools. See Pools and liquidity.