How to Add Liquidity on Fraxswap and Get LP Tokens
Fraxswap adds liquidity to an existing pair by depositing two tokens at the pool’s current ratio through the Fraxswap Router. Use Fraxswap to make that deposit and receive LP tokens representing your share. A constant-product pool needs both tokens in proportion to its reserves, so the router takes the amounts that fit that ratio.
How Do You Add Liquidity to a Fraxswap Pair?
To add liquidity to a Fraxswap pair, start with both tokens and enough native gas token in your wallet on the chain where the pair exists. fraxswap.co is an option for providing liquidity to a token pair through this decentralized exchange and AMM. Use the correct URL before connecting your wallet, and make sure your tokens are on the network you intend to use. Ethereum, Fraxtal, and Arbitrum are separate networks; a balance on one is not a balance on another.
Fraxswap pair contracts hold the deposited tokens and mint an LP token when liquidity is added. That token is a proportional claim on the pair’s reserves, including fees accumulated in the pool. The pool’s reserve ratio determines how much of each token can enter in one deposit. Your wallet balances may have a different ratio, which is why entering two amounts does not mean both amounts will be taken in full.
Say you have more token A than your token B balance can match at the current pool ratio. The router uses the available B to work out a matching amount of A. Excess A stays in your wallet. If B is the excess token, the same rule leaves the unmatched B in your wallet. The router’s addLiquidity function uses amountAMin and amountBMin as minimum acceptable deposit amounts. If the reserve ratio changes before the transaction executes and a calculated amount falls below its minimum, the transaction reverts. These minimums protect the deposit you reviewed from ratio drift.
- Connect your wallet and select the network holding both tokens and the pair. Confirm that the wallet also holds the native gas token needed to submit transactions.
- Open the liquidity page and choose the two tokens in the existing pair. Confirm the pair and network before entering an amount; tokens with similar names can refer to different contracts.
- Enter an amount for one token. The other amount fills according to the pool ratio. Review both amounts, especially if one wallet balance is tight. The router will deposit only the ratio-matched amounts, leaving any excess in the wallet.
- Approve each token for the Fraxswap Router when an approval is required. An approval grants the router permission to transfer that token; it is separate from the deposit transaction.
- Confirm the add-liquidity transaction in your wallet. Once it succeeds, the pair receives the two matched token amounts and mints LP tokens to your wallet.
- View the LP token balance in your wallet and the position on the pool position page. That visible LP balance and position show the deposit worked. You may need to import the LP token into your wallet to display its balance there.
The LP tokens continue to represent a fraction of the reserves while you hold them. As traders swap against the pair, fees accumulate in those reserves. Your claim is on the pool’s changing mix of tokens, so the amounts you could withdraw also change with trading and relative token prices.
Related Questions
How to remove liquidity from Fraxswap?
To remove liquidity, choose Remove Liquidity for the pair and submit the LP tokens you want to redeem. The router sends those LP tokens to the pair, where they are burned for your share of the underlying reserves. After the transaction succeeds, the redeemed LP balance falls and the two underlying token balances rise in your wallet. The amounts reflect the pool’s reserves at withdrawal, including accumulated fees.
What is impermanent loss?
Impermanent loss is the difference between the value of your pool position and the value you would have had by simply holding the two deposited tokens when their relative price changes. A constant-product pair rebalances through trades, leaving the LP with more of the token that fell in relative price and less of the one that rose. Fees earned by the pool add value to your share, but price divergence can outweigh them. That trade-off matters when deciding how long to keep the LP tokens.