Skip to main content

Provide Liquidity (V2)

V2 pools use a simple constant-product model. LPs deposit both tokens in the current reserve ratio and receive fungible LP tokens representing their share.

Add Liquidity

1. Approve Tokens

Approve both tokens to the V2 Router:

2. Call addLiquidity

3. With Native KAS

Use addLiquidityETH and send KAS as value:

Remove Liquidity

1. Approve LP Token

2. Call removeLiquidity

3. With Native KAS

Use removeLiquidityETH to receive KAS instead of WKAS:

Calculating Amounts

To add liquidity at the current price ratio, first query the pool reserves:

Key Points

  • First LP sets the initial price — deposit tokens at the desired ratio
  • Subsequent LPs must match the current reserve ratio
  • LP tokens are ERC-20 and can be transferred or used in other protocols
  • Fees (0.3%) auto-compound into the pool — no claiming needed
  • Subject to impermanent loss