description |
---|
Methodology and implementation of pricing LP share tokens |
To price LP tokens, it is not enough to simply add the values of all assets in the pool as this is easily manipulated. Instead, a more robust procedure is required to calculate LP token values.
{% hint style="info" %} The precise instructions on how to calculate LP shares of the 2-CLP, 3-CLP, or E-CLP are available in section 5 of this technical paper. {% endhint %}
This example demonstrates the principles of robust LP share pricing applied to constant product pools.
For a given constant product Balancer pool containing assets 1, ..., n, define the following:
The constant product invariant of the pool is
Note that the amounts $$r_i$$are easily manipulatable through swaps, but the product $$L$$is not. And, as we require asset pricing oracles elsewhere, we can presume that the prices
To calculate a manipulation-resistant LP token price, it will be enough to express the pricing of LP tokens solely in terms of manipulation-resistant variables
The portfolio value of the entire pool can be calculated as
In turn, the LP token price can be calculated in terms of manipulation-resistant variables as
LP share pricing for the CLPs follows the same general principles and is described in full detail in Section 5 of the following technical paper.