Simple Automated Market Maker

Simple version of the Uniswap AMM

Constant Product Market

Each transaction must satisfy the following equation:

After the transaction the reserves and k are updated as follows:

Simple Calculation

Constant Mean Market

The conservation equation becomes

An example can be seen at

Last updated