Overview

Controller
The Controller smart contract is the main contract with which the user interacts. Ans it’s the contract that writes orders on the matching engine and mints option tokens from the factory for buyers. It enables traders to deposit collateral, open short and long orders for whitelisted options, withdraw collateral, and exercise options. It also allows liquidators to cancel open orders of a user if the initial margin health factor is less than 1. And liquidate the user’s short positions if the maintenance margin health factor is less than 1. Short sellers can:- Withdraw an amount of the collateral deposited if the initial margin health factor is > 1 after withdraw
- Add collateral to avoid liquidation
- Burn option tokens