We provide a prototype to intuitively show the mathematic features of the O-AMM
model.
To run the demo, it needs the environment of Python
with packages including Numpy, matplotlib, sympy, and the packages they depend on.
We recommend you install the Anaconda.
- Details of installing
Anaconda
can be found here - Details of installing
sympy
can be found here. Note that if this doesn't work, go to command line within theAnaconda environment
and usepip
to install it instead.
- The Equation.1 of
O-AMM
detail mentioned in Principle of Omniverse AMM can be found in solving.py. - In constgrad.py we compared
O-AMM
withUniswap
andCurve
.
# activate the environment of your `python`. `base` for example
conda activate base
# run the script
python.exe ./constgrad.py
A detailed description of the O-AMM model is presented in Principle of Omniverse AMM.