Definition
underlying: base asset of a interest-bearing token interest-bearing token: IOU like cDAI, eUSDC : Underlying reserve in Pool : Zero-coupon bond reserve in Pool
Previous Work
Constant reserve: , the sum value function. Constant product: , the product value function.
2-asset
before and after the swap, the following is invariant.
Marginal price and Impliedt rate (IR)
In general, IR can be expressed:
: IR : Bond price in underlying.
Value Function
Lemma
: mStable : Balancer 2-asset
3-asset
になるはず。 3-asset BalancerのValue Funcになるはず。
Here, we can apply L’Hopital’s rule. so,
as a reference, 
Therefore,
This is exactly same Value Function of Balancer 3-asset with all weights 1/3.
n-asset
Let denote balance of asset in a pool and be vector of balances .
Trading Function :
Value Function :
Marginal Price :
Proof
Let denote balance of token bought by a trader and denote balance of token sold by the trader.
By denition, is minus the partial derivative of in function of :
From the value function denition we can isolate :
Now Eq8 becomes:

