> ## Documentation Index
> Fetch the complete documentation index at: https://orderly.network/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Smart Contract Overview

> Visualize the interaction between Orderly smart contracts for deposits, trades, and PnL.

## General Overview

<Frame caption="Orderly contracts">
  <img src="https://mintcdn.com/orderly/OzqpKdtQuSFdqT6W/images/smart-contracts/orderly-contracts.webp?fit=max&auto=format&n=OzqpKdtQuSFdqT6W&q=85&s=7be9914cbc1b4213f1e5dcaffd825505" width="2100" height="1005" data-path="images/smart-contracts/orderly-contracts.webp" />
</Frame>

## Deposit Flow

<Frame caption="Deposit contract interactions">
  <img src="https://mintcdn.com/orderly/OzqpKdtQuSFdqT6W/images/smart-contracts/orderly-deposit-flow.webp?fit=max&auto=format&n=OzqpKdtQuSFdqT6W&q=85&s=e1c079bd19fb63895af0fc3a7ef9bd56" width="1078" height="649" data-path="images/smart-contracts/orderly-deposit-flow.webp" />
</Frame>

## Settle PnL Flow

<Frame caption="Settle PnL contract interactions">
  <img src="https://mintcdn.com/orderly/OzqpKdtQuSFdqT6W/images/smart-contracts/orderly-settle-pnl-flow.webp?fit=max&auto=format&n=OzqpKdtQuSFdqT6W&q=85&s=c68e56db6101f8f802bae6855b2a6016" width="827" height="431" data-path="images/smart-contracts/orderly-settle-pnl-flow.webp" />
</Frame>

## Trade Flow

<Frame caption="Orderly trade contract interactions">
  <img src="https://mintcdn.com/orderly/OzqpKdtQuSFdqT6W/images/smart-contracts/orderly-futures-trade-flow.webp?fit=max&auto=format&n=OzqpKdtQuSFdqT6W&q=85&s=2168f5812b5210e767b606ccfc8edb24" width="966" height="588" data-path="images/smart-contracts/orderly-futures-trade-flow.webp" />
</Frame>

## Withdrawal Flow

<Frame caption="Orderly withdrawal contract interactions">
  <img src="https://mintcdn.com/orderly/OzqpKdtQuSFdqT6W/images/smart-contracts/orderly-withdraw-flow.webp?fit=max&auto=format&n=OzqpKdtQuSFdqT6W&q=85&s=9f2719fcccb3d3aefbdd0d09e8bbeee3" width="1432" height="827" data-path="images/smart-contracts/orderly-withdraw-flow.webp" />
</Frame>
