DEV Community

Kevin
Kevin

Posted on

What Does Fraxswap Handle in a Trade, and What Must You Do?

Fraxswap executes swaps through liquidity pools and can spread a funded sale over time, but you still choose the assets, acceptable outcome, wallet permissions, and when to collect the result. Its contracts follow rules within available liquidity; they cannot decide whether a token or price suits you.

What Must You Decide Before Trading?

You must select the network, exact tokens, amount to spend, and result you will accept. A symbol or logo is insufficient identification: different contracts can share a name, and a token on Ethereum is distinct from one on Arbitrum. Compare contract addresses with a source you trust before approving an unfamiliar asset. Available pairs, liquidity, and interface features depend on the deployment.

For a regular swap, decide whether the quoted output is acceptable and how much slippage you will allow. Slippage tolerance sets a minimum received amount: if execution would deliver less, the swap reverts, though you may still pay network gas. Too wide a tolerance permits a worse fill. For a long-term order, choose the sale amount and duration; final proceeds cannot be fixed from the starting quote.

How Does Fraxswap Execute Each Order?

It trades against token inventory in pools, with a time-weighted average market maker (TWAMM) option for selling gradually. The core AMM uses a constant-product pool: buying one token removes it from the pool and adds the token you sold, shifting the price along the reserve ratio. A larger trade relative to reserves moves the price more. Anyone can create a pair, but its existence does not imply deep liquidity or a safe token.

The Fraxswap AMM embeds long-term orders into its pairs. In Fraxswap, a TWAMM order deposits the amount to sell, then accounts for sales at a steady rate over the chosen interval against the pool. The contract calculates the cumulative effect of those virtual sales when someone interacts with the pool; you do not sign a transaction for each slice. You choose size and duration, while the contract handles the schedule. Proceeds depend on pool prices throughout the interval.

When a proposed spot swap is large relative to pool reserves and you can wait, spreading it may reduce the impact of selling all at once. If you need tokens immediately or require a firm minimum for the whole trade, use a regular swap with an acceptable minimum received. A TWAMM schedule cannot guarantee a better final price if the market moves against you or liquidity thins.

What Must You Authorize and Pay?

You connect a wallet on the chosen network, review the pair, route and quote, then submit the transaction. An ERC-20 token may first need a spending approval, which permits a contract to transfer it; approval alone is not a trade. Read the spender and allowance in your wallet. A limited allowance reduces ongoing permission, but another trade may require another approval.

The quote reflects pool pricing and trading fees. Pool fees are charged by the pair and can vary by pool; network gas pays for approvals, submissions, and later claims. Price impact is the change your trade causes in the pool, whereas price movement is a market change before or during execution. Both differ from fees. Review the minimum received and transaction deadline for an immediate swap where the interface offers them; a quote is an estimate until execution.

What Changes If You Provide Liquidity?

You supply both assets to Fraxswap pools as trading inventory and receive a variable share represented by liquidity provider tokens. Fees may accrue, but your position's value depends on changing pool balances. When traders buy one asset, your share ends up holding more of the other. If relative prices diverge, withdrawing can be worth less than holding the deposited tokens, even after fees. Decide whether that exposure and fee activity justify depositing both assets.

How Can You Tell When Your Trade Is Complete?

Completion depends on order type: an immediate swap settles in its transaction, while a TWAMM order must finish selling and have proceeds withdrawn. For a swap, a confirmed transaction receipt and received token balance show what arrived. Your wallet may need the correct network and token contract displayed before that balance is visible. A failed transaction means no swap occurred, even if gas was spent.

For a TWAMM order, confirmation first shows that the funded order was created. Track its state and expiry; selling continues after that transaction. Once proceeds are available, withdraw them and verify the output token in your wallet. If you cancel early, confirm returned unsold input and earned proceeds separately. Distinguish funds still in an active order, exchanged funds awaiting withdrawal, and tokens actually in your wallet.

You can now judge which steps the pool automates and which choices and final checks belong to you.

Top comments (0)