# Using Liquidity Pool Tokens for Balance
Decentralized exchanges like Uniswap rely on automated market maker (AMM) smart contracts that hold two (or more) tokens in a liquidity pool. The price between tokens is balanced by a constant product formula (e.g. x * y = k). [[ConstantProductFormula]]
## Liquidity Pool (LP) Tokens
• When you deposit tokens into an AMM pool, you receive LP tokens that represent your ownership share in the pool.
• As trades occur, the pool’s balances shift, but your LP tokens always reflect your proportional stake.
• [[AMMContracts]] track the contributions of each liquidity provider via these minted tokens.
## Ensuring Balance
1. **Constant Product Market Maker (CPMM)**
- The pool enforces the relationship x * y = k, keeping price stable relative to supply/demand.
- Large trades push price up/down, but the formula ensures continuous liquidity.
2. **Impermanent Loss**
- LPs face potential “impermanent loss” if one token’s price changes significantly.
- However, trading fees (and other incentives) can offset this if volume is high.
3. **Rebalancing with LP Tokens**
- When you withdraw your liquidity, you burn your LP tokens to receive tokens from the pool.
- The pool automatically calculates how much each LP token is worth in each underlying asset.
## Rewarding Liquidity
• Many protocols give additional incentives for staking LP tokens in farms or rewards contracts. [[LiquidityIncentives]]
• Rewards can come from protocol fees, governance token distributions, or specialized yield programs.
## Best Practices
1. **Monitor Price Ratios**
- Keep an eye on asset price fluctuations to manage impermanent loss. [[PriceVolatilityGuidelines]]
2. **Diversify**
- Provide liquidity in multiple pairs to spread risk. [[PortfolioManagement]]
3. **Use Automated Tools**
- Tools like automatic rebalancers or yield aggregators can help manage your positions. [[YieldAggregators]]