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

# The Global Vault

> How a maker's funds back every market they run

A maker on ordr.trade does not fund each market separately. They create one
**vault**, a single account derived from their own wallet address, and that
one vault backs every market they run across every trading pair.

The vault itself just proves who it belongs to. It holds no token balances
directly; instead, the maker creates normal associated token accounts owned
by the vault for every mint they want to trade, and those are what actually
hold the funds.

## Orders are a promise, not a transfer

Placing an order does not move any tokens. It simply rests in the maker's
[Shard Book](https://docs.ordr.trade/architecture/shard-books.md) as a promise backed by their vault.

Tokens only actually move at the moment a taker fills against the order. This
is what lets one vault back many live quotes, across many pairs, at the same
time, instead of a separate pool of funds sitting locked up behind every
single market.

## Managing a vault

A maker interacts with their vault through a small set of instructions:

| Instruction | What it does |
| - | - |
| `create_vault` | Creates the maker's vault PDA, derived from `["vault", authority]` |
| `deposit` | Moves tokens from the maker's wallet into one of the vault's associated token accounts |
| `withdraw` | Moves tokens back out, as long as doing so would not leave any resting order underfunded |
| `close_vault` | Reclaims the vault's rent once it is empty and backs no open orders |

Because the vault is one account per maker, not one per market, a maker only
ever has to fund and manage a single balance per token, no matter how many
pairs they quote on.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.