Why Use Balancer Pools
Continuous Liquidity
Always-available two-sided markets without waiting for counterparties
Oracle Protection
Automatic trading halts when prices deviate beyond configured thresholds
Compliance Enforcement
Identity verification and transfer restrictions validated before every swap
Custom Weight Ratios
Configure token exposure through asymmetric pool weights (e.g., 80/20)
Pool Mechanics
Balancer Pools use weighted constant-product formulas that maintain the invariant(balanceA^weightA) × (balanceB^weightB) = k. Unlike 50/50 constant-product pools, weighted pools let you configure exposure ratios—an 80/20 pool means 80% value in the security token and 20% in stablecoin.
When users swap tokens, the pool calculates output amounts based on current balances, configured weights, and swap fees. Before executing any swap, the pool queries the oracle for current security pricing and validates the AMM price falls within acceptable deviation thresholds.
Weight Ratio Impact
Weight Ratio Impact
Weight ratios determine capital efficiency and impermanent loss exposure:80/20 Pool (Stock/USDC):
- Requires less stablecoin liquidity for same token coverage
- Higher exposure to stock price movements
- Suitable for trending markets where you expect appreciation
- Balanced capital requirements on both sides
- Reduced impermanent loss compared to asymmetric weights
- Better for ranging markets with bidirectional volatility
- Minimal stock exposure, heavy stablecoin weight
- Lower impermanent loss but requires significant stablecoin reserves
- Useful for bearish positioning or conservative liquidity provision
Oracle Integration
Every swap triggers oracle validation before execution. The oracle compares the AMM-calculated price against external price feeds from banks or data providers, rejecting trades that exceed maximum deviation thresholds.| Deviation Check | Action | Result |
|---|---|---|
| Price within threshold | Execute swap | Trade completes at AMM price |
| Price exceeds threshold | Halt trading | Transaction reverts with deviation alert |
| Oracle feed stale | Use cached price | Higher slippage tolerance applied |
| Oracle unavailable | Reject swap | No trading until feed restored |
Swap Execution Flow
Liquidity Provision
Pool creators and liquidity providers deposit tokens to earn trading fees. Balancer distributes fees proportionally to liquidity providers based on their pool share, calculated from LP tokens received during deposits.- Initial Pool Funding
- Adding Liquidity
- Removing Liquidity
Pool creators must provide both tokens at the configured weight ratio during initialization. For an 80/20 pool targeting 80k worth of stock tokens and $20k USDC.
