Exponentiation

This page has been deprecated. V1 documentation is partially maintained here

Exponentiation

The main formulas used in Balancer protocol make use of a form of exponentiation where both the base and exponent are fixed-point (non-integer) values. Take for example the swap functions, where the weights in both the exponent and the base are fractions:

Since solidity does not have fixed point algebra or more complex functions like fractional power we use the following binomial approximation:

Last updated