Skip to main content

Predict Manager

The PredictManager is a per-user shared account object. It wraps a DeepBook BalanceManager, stores quote balances, and tracks Predict positions internally.

Each user should create one manager and reuse it. Binary positions and vertical ranges are not separate onchain objects; they are quantities stored inside the manager.

API

Click to open
Read owner, balances, and position quantities

Use these functions to read the manager owner, deposited asset balances, binary position quantities, and range quantities.

Click to open
Deposit quote assets

The manager owner deposits quote assets before minting positions or ranges.

Click to open
Withdraw quote assets

The manager owner can withdraw quote assets from the manager.

Events

Click to open
PredictManagerCreated

Emitted when a new PredictManager is created.