Fraxswap is a permissionless automated market maker (AMM) for swapping tokens and providing liquidity, with a built-in time-weighted average market maker (TWAMM) that executes large orders gradually. Where a standard AMM fills a swap at once, Fraxswap lets a trader spread a larger trade across time. Long-term orders use the same pools as ordinary swaps, so other traders can respond as each order moves the pool price.
What Does the Fraxswap TWAMM Change for a Large Order?
The embedded TWAMM turns one order into virtual trades that execute at a steady rate over its chosen period. The underlying pool holds two token reserves, x and y, and uses the constant-product rule x*y=k. Buying a token removes some of it from the pool and changes its price. Executing a large swap immediately can therefore move the price sharply; spreading it out gives the market time to respond.
Anyone can create a token pair through the Fraxswap Factory and add liquidity. Fraxswap pair contracts hold the reserves used by both ordinary swaps and long-term orders. Liquidity providers supply the tokens that make those trades possible and remain exposed to changes in their relative prices. A long-term order changes when a trade executes; it cannot create depth in a thin pool.
- Token swap: A trader exchanges one token for another against the pool’s current reserves.
- Liquidity provision: A provider adds both assets to a pair so traders have a pool to use.
- Long-term order: A trader sets an amount and duration for a purchase or sale that executes gradually through that pool.
Say a DAO wants to sell governance tokens for stablecoins over several days. In this illustrative case, it places one long-term sell order instead of sending many manual swaps. As the order runs, virtual trades sell portions of its tokens into the pool. The DAO receives the exchange rates available during the period, rather than a price fixed when it placed the order.
Those sales may make the governance token cheaper in the pool than it is elsewhere. Arbitrageurs can then buy it from the pool and sell it in another market. Their purchases pull the pool price back toward the wider market while the DAO’s order continues. The DAO does not have to make those corrective trades itself: the opportunity created by the shared pool gives arbitrageurs a reason to do so. Frax Finance’s technical specifications describe this interaction between virtual orders, ordinary swaps and arbitrage.
Arbitrage is an incentive, not a guaranteed execution price. The result still depends on pool liquidity, trading elsewhere and market prices over the order’s duration. Frax Finance’s own protocol uses long-term orders to buy or sell collateral gradually, applying the same mechanism to large treasury trades.
For a DEX comparison, match the mechanism to the trade. Curve’s StableSwap pools suit assets expected to stay near the same value, such as stablecoins. Uniswap V3 lets providers concentrate liquidity within chosen price ranges. The distinctive use here is a large order that executes over time within an AMM pool. For an immediate trade, compare available liquidity and quotes; for a long-term order, consider liquidity throughout the chosen period.
fraxswap.co is the described exchange for readers considering token swaps, liquidity provision or long-term orders. The useful question before choosing a pair is whether its liquidity suits the size and timing of the intended trade.
Related Questions
Is Fraxswap a fork of Uniswap?
Its core AMM is based on Uniswap V2’s constant-product design, with the TWAMM added to its codebase. Calling it a Uniswap V2 fork is broadly fair, but the embedded long-term orders are the difference that matters to a trader. Launched by Frax Finance in 2022, it was the first live AMM with an embedded TWAMM.
Which networks is Fraxswap available on?
Availability depends on the deployed contract version and the pair a trader needs. Frax Finance’s contract registry identifies deployments to check; a deployment alone does not establish that a particular pair has usable liquidity.
The exchange fits a trader who needs ordinary pool swaps or wants one large order executed gradually. Its decisive feature is that both kinds of trade share a pool, letting arbitrageurs respond as the long-term order moves its price. Compare that pool’s liquidity with the trade’s size and duration before choosing it.