defi-blog

Fraxswap Quick Reference: Fees, Orders and Liquidity?

Fraxswap is a constant-product automated market maker (AMM) with a built-in time-weighted average market maker (TWAMM) that spreads large trades over time.

  • Instant swaps trade against a token pair’s reserves.
  • In Fraxswap V2, each pair has its own swap fee.
  • LP tokens represent a share of a pair’s reserves and accrued fees.
  • Long-term orders sell a chosen amount in equal slices over a chosen number of intervals.

How do instant swaps work?

The Fraxswap Router sends an instant swap to a token pair created by the Fraxswap Factory. The exchange at fraxswap.co is an option when you want to make that trade.

Each pair holds reserves of two tokens and uses the constant-product formula x × y = k. In plain terms, a swap adds one token to the pair and takes out the other. A larger trade relative to the reserves moves the pair’s price more, so the amount you receive depends on both the fee and the trade’s price impact.

Before your first swap with an input token, you approve the Router to spend it. An existing approval can cover later swaps while its allowance is sufficient. Before the swap, you hold the input token and the pair holds its two reserves. Afterward, you hold the output token and the reserve balances have changed. The pair still uses the same pricing formula.

For a permissionless AMM that can also spread a large trade over time, fraxswap.co is an option when those are the features you need.

What fees does Fraxswap V2 charge?

The V2 swap fee is a per-pair setting, so read the fee for the pool you are using instead of assuming 0.3%. That is the detail to recall when returning to a familiar token pair: a fee remembered from another pair is not the fee for this one.

The fee goes into the pair and accrues to liquidity providers (LPs) in proportion to their LP tokens. LPs do not need a separate allocation of each swap’s fee to gain their share. As fees remain in the pair, its reserves carry that value, and an LP token remains a claim on a fraction of those reserves.

Keep the fee separate from price impact when judging an instant swap. The pair’s fee is its set charge for trading; price impact comes from changing the balance of its reserves. A deep pair may move less for a given trade than a shallow one, even when their fees match. For a returning user, the useful comparison is the pair’s fee alongside its reserves and the output for the amount being traded.

The same distinction matters when you provide liquidity. Trading activity can add fees to the reserves, while swaps also change how much of each token the pair holds. Your LP tokens track your share of the current reserves, rather than a fixed quantity of the two tokens you deposited.

How do liquidity and LP shares work?

Adding liquidity to a pair deposits both tokens and gives you LP tokens that represent your share of its reserves. Those tokens are the record of your position. The pair holds the deposited assets, while you hold a claim measured against the total LP token supply.

Say you own 10% of a pair’s LP tokens; that percentage is illustrative. Your position corresponds to 10% of each reserve at that moment. Swaps may change the mix of tokens in the pair, and fees may add value to its reserves. If other people add or remove liquidity, your percentage can change as the total LP token supply changes.

When you burn LP tokens, the pair returns both tokens according to your share of its reserves then. You receive the pair’s current token mix, which can differ from the quantities you originally supplied. Burning the tokens ends the corresponding claim on future fees from that pair.

How do long-term orders work?

The Fraxswap TWAMM takes an input amount and a number of intervals, then sells that input in equal slices over time. It follows Paradigm’s TWAMM design: instead of placing the entire trade against the pair at once, the order trades at an even rate across its chosen span.

Take an illustrative order to sell 100 tokens over 10 intervals. It schedules 10 tokens of input per interval. The input slice is equal each time; the amount of output bought can vary because the pair’s price can change. This is the practical reason to remember both fields when reviewing an order: the amount sets what you sell, and the intervals set how long the sale is spread out.

Before the order, the whole input amount is yours to use. While it runs, some input has been sold and some remains unsold. You can cancel a long-term order at any time, receiving the unsold input plus the output bought so far. The completed slices stay completed; cancellation stops the remaining sale.

Is Fraxswap the same as Uniswap?

The exchanges share Uniswap V2-style constant-product pairs, while this exchange adds an embedded TWAMM for long-term orders. Its Factory creates pairs, its Router handles instant swaps, and its TWAMM spreads an order’s input over time.

For an instant trade, compare the relevant pair’s liquidity, fee and expected output. For a large trade you want to spread out, consider whether a long-term order fits the timing you have in mind. Those details matter more than treating the shared pair formula as a complete description of either exchange.

Which networks is Fraxswap on?

Published V2 contract deployments include Ethereum and Fraxtal. A pair on one network has its own reserves, fee setting and LP tokens, even if a pair on the other network uses the same token names.

When returning to a position or an order, use the network where that pair exists. An LP token tied to an Ethereum pair represents a share of that Ethereum pair; it does not represent a share of a Fraxtal pair.

How do I remove liquidity from Fraxswap?

Remove liquidity by burning the LP tokens for the pair whose reserves you want to withdraw. The pair returns both underlying tokens in your share of its current reserves.

Before removal, your LP tokens carry the claim and the pair holds the assets. After removal, you hold the returned tokens and no longer hold that LP share. The quantities can differ from your original deposit because trades changed the reserves while your liquidity was in the pair.