This is auxiliary repo for post on Loss-Versus-Rebalancing (LVR) of Function Maximizing Automated Market Maker (FM-AMM).
For the derivation of batch clearing logic and LVR, see notebooks/FMAMM_batch_math.ipynb
and notebooks/LVR_derivation.ipynb
, respectively.
For the simulations and comparison against CPMM, refer the rest.