TWAMM long-term order average price vs starting price: what changed
TWAMM long-term order average price vs starting price differ because slices follow pool prices over time, while fees and price impact reduce proceeds.
BitCurrent Newsroom3 min read
A finished Fraxswap TWAMM order can have an average price below its starting pool price because it sells in slices across the whole window, as market prices move and fees and price impact reduce proceeds. The starting price is a spot price for an infinitesimally small trade at one moment.
- Order: sell 1,000 tokens over five days.
- Pool price: 100 USDC at the start, sliding steadily to 90.
- Estimated average: about 95 USDC per token before fees.
You enter a token amount and a time window. Fraxswap pair contracts execute virtual sales against the pool over time, with each slice priced against the pool at that moment. Fraxswap is a concrete example because its embedded TWAMM handles those long-term orders inside an AMM. The total USDC received divided by the total tokens sold is your average price.
Why does the average move away from the start?
Market drift is the main reason in this example. If the pool price falls steadily from 100 to 90 during the five days, equal slices sell at prices spread across that range. Their time-average is about 95, roughly 5% below the starting price. The order’s average therefore reflects the full window, not the opening quote.
That estimate assumes a steady price path and equal slices. Actual pool prices can move unevenly. Arbitrageurs trade against price differences between pools and markets, helping realign the pool as outside prices change. Each slice still meets the pool conditions at its execution time.
Fees add another reduction. The pool fee applies to every slice, so even if the market price stays flat, proceeds per token average below the starting spot price. A slice can also move the pool price as it trades; this per-slice price impact depends on the pool’s liquidity and trade size. Together, drift, fees and impact explain the gap.
What should you check after the order finishes?
Compare total tokens sold with total USDC received to calculate the realized average. Then compare that figure with the pool’s starting spot price: the difference can include market movement during the window, fees on each slice and price impact. The TWAMM paper by Paradigm describes virtual-order execution over time; the Uniswap V2 whitepaper explains how constant-product pools set prices as trades change their reserves.
For a large trade, judge the result against the prices available throughout its execution window, not just the price at launch. The realized average is the number to use when assessing what the order delivered.