The abstract AMM contract contains variables and functions pertaining to the Uniswap V2 style AMM vault. The vault is itself a different contract but is a first class citizen and is tightly integrated with the Orderbook contract. The Orderbook contract inherits from the Abstract AMM contract which enables the vault to place orders at clearly defined price intervals.

State Variables :

The vault contract is used for managing deposits, withdrawals and initialising the vault price while the abstract AMM handles the buy and sell order fills.

_fillVaultBuyMatch():

This function is used by placeAndExecuteMarketBuy() .

Input parameters:

Return parameters: