Fraxswap fills an instant swap against a pool in one transaction or streams a TWAMM order through it until expiry; the better fit depends on your order’s size relative to pool depth and how soon you need the trade completed. You can also split the order into separate swaps or use an aggregator to route through available liquidity. For a mid-to-large order, the question is how much price impact you can avoid by taking more time, and what price movement you accept while you wait.
How Fraxswap prices an instant swap
An instant swap trades your entire amount against the pool’s available liquidity at once. Each token pair has its own Pair contract and reserves. As your trade changes the balance of those reserves, later units in the same swap receive a worse rate than earlier units. The effect is more pronounced when the order is large relative to that pair’s reserves, even if the amount seems modest in another, deeper pool.
A thin pool can therefore make a single large order expensive before any market price moves. The Fraxswap AMM shows this size problem in the swap screen’s quoted price impact. On Fraxswap, that figure helps you judge whether executing the full amount now would move the pool enough to consider a slower approach. It describes the effect of your order on the quote; it does not include every possible cost of execution.
Read the quote for the exact pair, amount and direction you intend to trade. A price impact that looks acceptable for a small test swap may rise sharply when you enter the full amount. The quote can also change before your transaction confirms. Slippage tolerance limits how far the execution may move from the quote; it does not remove the price impact already built into that quote.
Four ways to execute the order
These approaches differ in when they use liquidity, how many transactions you send and how long your order remains exposed to market prices:
- Instant swap in one transaction: Enter the full amount, review the output quote and submit the swap. It suits an order that needs an immediate fill or has modest quoted impact. The entire order meets the pool’s current reserves, so you accept its full price impact at once.
- Fraxswap TWAMM order until expiry: Set the amount to sell and an execution period, then place the long-term order. The pool processes it over time, and you withdraw the proceeds afterward. It suits a large order when you can wait, but the rate received by later portions can change before expiry.
- Several manual swaps: Divide the amount into slices and submit each swap separately, reviewing the next quote before sending it. This gives you a decision between slices. It also requires a transaction and gas for every slice, and the market may move while you decide when to send the next one.
- Aggregator routing through Fraxswap pools: Request a quote for the full amount and inspect the proposed route before submitting it. An aggregator may divide execution among pools when that produces a better available quote. Its route may change, so confirm that it actually uses the liquidity you intend to trade through.
Manual splitting and routing can reduce the burden placed on one pool without committing the whole order to a TWAMM duration. Compare their quoted output with an instant swap for the same input amount. For manual slices, include the gas for every transaction in that comparison; a better rate on each slice does not automatically mean a better result for the complete order.
Why a TWAMM order can reduce price impact
A TWAMM order spreads the sale across its execution period instead of pushing the full amount through the pool immediately. After one portion trades, other traders, including arbitrageurs, can trade against the changed pool price before later portions execute. That activity can replenish the liquidity your order draws on. The next portion may then face less of the price movement that a single large swap would have caused.
The benefit depends on what happens between portions. In a thin pool, there may be too little trading to restore its balance quickly. In a volatile market, the outside price may move enough that later portions trade at a worse rate despite their lower impact on the pool. Spreading an order reduces the effect of placing it all at once; it does not lock in the rate shown when you place it.
A TWAMM order also has no limit price. It sells the full amount over its chosen period regardless of the rate available as it executes. That matters if you would stop selling after a particular price move: manual slices let you reconsider, while a TWAMM order follows the duration you set. Account for the transaction that places the order and the transaction used to withdraw its proceeds when comparing gas with an instant swap.
Which costs should decide the trade?
Start with the full-size instant quote. Its price impact tells you whether your amount is large for this pool, while its output gives you a baseline for comparing other available quotes. Then decide how much delay the order can bear. If the trade must finish now, waiting for possible pool replenishment has no value to you, even when the instant quote shows substantial impact.
If time is flexible and the full-size quote shows large impact, I would consider a TWAMM order first. Its advantage depends on trading activity between portions and on the market price remaining acceptable through expiry. If you need the ability to stop after each fill, manual slices fit that requirement more closely. If an aggregator offers a route, judge its quoted total output and route against the direct swap, rather than assuming that splitting across pools must be cheaper.
What should you choose for a mid-to-large order?
Choose a TWAMM order when the amount is large relative to pool depth and you can accept both the wait and the price risk through expiry. Otherwise, an instant swap is the simpler choice when its quoted impact is acceptable and you need the fill promptly. Manual slices suit a trader who wants to reassess between trades; aggregator routing is worth comparing when its available route improves the full-order quote.
The useful distinction is whether your order’s immediate impact costs more than the time, transactions and market exposure required to spread its execution.
Top comments (0)