Balancer generalizes the constant product formula of Uniswap v2, introducing a weighted geometric mean formula that allows the creation of pools that may have more than two assets. In addition, when a Balancer pool is created, each asset of the pool is endowed with a certain weight representing the share of that asset in the pool. This gives additional flexibility to the composition of the pools.
In this chapter, we will describe in detail ...