The Kuru AMM Vault contract is for managing the AMM Vault and is tightly integrated with the OrderBook contract. It allows users to deposit liquidity in exchange for shares, withdraw liquidity by paying in shares and manages vault prices and sizes in the OrderBook contract.

State Variables :

Initialization Flow :

The Kuru AMM Vault is deployed when the OrderBook contract is deployed itself and is initialized after the OrderBook initialization.

Share Calculation :

Deposits :