# Off-chain Orderbook and Risk Engine

Aevo operates an off-chain order-book where maker and taker orders are posted and matched. Once a maker and taker order gets matched, only then do they get posted on Aevo’s smart contracts, which are deployed on the L2 roll-up.

Before an order is created and posted to the order-book, it is evaluated through the off-chain risk engine. The risk engine checks margin requirements for that account (either Standard Margin or Portfolio Margin) to determine if it has enough margin to create that order.

<figure><img src="https://2664521554-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVoPhcPOM43FkaxF5m6dI%2Fuploads%2FyLL26aZEmCPReCmbkLBx%2Fimage.png?alt=media&#x26;token=55f46677-3607-4477-9652-9537ee099e53" alt=""><figcaption></figcaption></figure>
