The price of the ith token in the pool in terms of our internal numeraire, scale, is simply
Pi=αisi,
where si is the token's scale and αi is the token's reserve so changes in the price of a token can be expressed as
Pi+ΔPi=αi+Δαisi+Δsi.
With Multiswap, there are two extreme ways to change the price of a token:
- Trading: Holding the scale constant (Δsi=0) and changing the reserves; or
- Reallocating: Holding the reserves constant (Δαi=0) and changing the scale.
Recall that the weight of a token is given by
wi=s0si,
where s0 is the scale of the LP token given by
s0=j=1∑nsj
so that changing the scale of a token also changes the weights.
In this simple tutorial, we focus on how changing the scale of a token affects the prices and weights.