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.
File not found in manifest:
packages/predict/sources/predict_manager.move. You probably need to run `pnpm prebuild` and restart the site.Click to open
Deposit quote assets
The manager owner deposits quote assets before minting positions or ranges.
File not found in manifest:
packages/predict/sources/predict_manager.move. You probably need to run `pnpm prebuild` and restart the site.Click to open
Withdraw quote assets
The manager owner can withdraw quote assets from the manager.
File not found in manifest:
packages/predict/sources/predict_manager.move. You probably need to run `pnpm prebuild` and restart the site.Events
Click to open
PredictManagerCreated
Emitted when a new PredictManager is created.
File not found in manifest:
packages/predict/sources/predict_manager.move. You probably need to run `pnpm prebuild` and restart the site.