Balancer v3 is live
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
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 =