background

Balancer v3 is live

AMMs
made
easy

The ultimate platform for custom liquidity solutions. Balancer v3 perfectly balances simplicity and flexibility to reshape the future of AMMs.

Code
less,
build
more.

Balancer v3’s architecture focuses on simplicity, flexibility, and extensibility at its core. The v3 Vault more formally defines the requirements of a custom pool, shifting core design patterns out of the pool and into the Vault.

SIMPLICITY

Building
on
v3
is
simple

To make custom pool creation easy, core functions have been moved from pools into the heavily audited Vault. For example, here’s all the code needed to build a swap function for a Constant Product Pool.

// Swap function on constant product pool
function onSwap(PoolSwapParams calldata params)
  external
  pure
  returns (uint256 amountCalculatedScaled18)
{
  uint256 poolBalanceTokenOut =