W Swap
Liquidity
Provide and manage liquidity in constant-product AMM pools on W Chain. This guide covers creating positions, understanding LP tokens and fees, and safely removing liquidity.
Overview
- Network: W Chain (EVM-compatible; native gas token
WCO) - Model: a constant-product AMM (x·y = k)
- LP Tokens: Minted to represent your position; burned when removing liquidity
- Fees: 0.25% per trade paid to LPs (accrues within pool reserves)
Prerequisites
- A supported wallet (e.g., Rabby or Metamask) connected to
W Chain. - Sufficient
WCOfor gas. - The two assets you want to deposit. If assets are on Ethereum or BNB Chain, bridge them first.
Add Liquidity
- Open
LiquidityorAdd Liquiditypage. - Select the token pair (Token A and Token B). You may paste contract addresses for custom tokens.
- Enter an amount for one token; the UI computes the corresponding amount for the other token based on current pool price.
- Approve spending for each token if prompted (
Approve Token A/Approve Token B). - Review details:
Pool Share: Estimated percentage of the pool you’ll own.Prices: Implied exchange rates after your deposit.Slippage/Min Received: Relevant when creating the initial pool or large deposits.
- Click
Supply(orAdd Liquidity) and confirm in your wallet. - After confirmation, you receive
LP tokensrepresenting your position.
Notes:
- If a pool does not exist yet, your deposit sets the initial price. Carefully choose amounts to avoid unintended pricing.
- For new pools, higher slippage tolerance may be needed; the UI will guide you.
Remove Liquidity
- Navigate to your position (e.g.,
Poolpage orYour Liquidity). - Choose the position and select
Remove. - If prompted, approve the router to spend your LP tokens (
Approve LP). - Select the percentage to remove (e.g., 25%, 50%, 100%).
- Review expected amounts of Token A and Token B.
- Click
Remove, confirm in your wallet, and wait for the transaction to finalize.
Fees and Rewards
- Each trade pays a 0.25% liquidity fee to LPs, accruing inside the pool as additional reserves.
- Your portion of fees is implicit in the increased value of your LP tokens.
- Realization occurs when you withdraw liquidity (your redeemed amounts include fee accrual).
Risks and Best Practices
- Impermanent Loss: Price divergence between tokens can reduce your position value vs. holding.
- Slippage: Large deposits/withdrawals can move price; consider splitting actions.
- Smart Contract Risk: Use official UI and verified token addresses.
- Gas Costs: Keep
WCOfor approvals, adds, and removals.
Troubleshooting
Approve Required: Approve both tokens before adding liquidity; approve LPs before removing.Insufficient Balance: Confirm balances on W Chain and consider bridging if needed.Transaction Reverted: Increase slippage tolerance or reduce deposit size.No Positions Visible: Ensure correct wallet and network (W Chain) are selected.
FAQs
- How do I earn fees? Fees accumulate in the pool; your LP token share entitles you to a proportional claim when you withdraw.
- Can I add single-sided liquidity? a constant-product AMM requires balanced deposits; use a swap first if needed.
- Where can I see my positions? Use the
PoolorYour Liquidityview in the DApp.