# Vault

*[Documentation index](/llms.txt) · [Full index](/llms-full.txt)*

The Predict vault holds accepted quote assets and takes the opposite side of every trade. `predict.move` owns pricing and trading orchestration; `vault.move` is the state machine for balances, exposure, mark-to-market liability, max payout, and settled-oracle compaction.

LPs interact with the vault through `predict::supply` and `predict::withdraw`, which mint and burn `PLP` shares. See [Predict](/onchain-finance/deepbook-predict/contract-information/predict) for those public liquidity entry points.

## Read functions

**Vault balances and value**

Use these functions to read total vault balance, concrete asset balances, total mark-to-market liability, vault value, and total max payout.

<!-- External code reference: packages/predict/sources/vault/vault.move -->

## Structs

**`Vault`**

<!-- External code reference: packages/predict/sources/vault/vault.move -->

**`SettledOracleState`**

After settlement compaction, the vault stores compact per-oracle remaining quantity and liability.

<!-- External code reference: packages/predict/sources/vault/vault.move -->

**`PLP`**

`PLP` is the LP share coin minted when users supply vault liquidity.

<!-- External code reference: packages/predict/sources/vault/plp.move -->
