Vaults are user-deployed managed trading pools that run on top of Pacifica’s full trading infrastructure. A creator sets up the vault with a configuration, a designated manager trades the pooled capital, and depositors (LPs) hold shares that represent their proportional claim on the vault’s net asset value. Because a vault is a real Pacifica trading account, every order it places is subject to the same margin model, mark-price rules, liquidation engine, and fee schedule as any other account on the exchange.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/pacifica-fi/docs-migrate/llms.txt
Use this file to discover all available pages before exploring further.
Vault accounts are ordinary Pacifica accounts. They are subject to normal margin requirements, mark-price calculations, and liquidation rules. Pacifica does not audit, vet, or insure third-party vault managers.
Roles
| Role | Description |
|---|---|
| Creator | The address that calls create_lake and pays the 10 USDC creation fee. The creator sets the vault’s initial configuration and retains the ability to update mutable fields (deposit cap, whitelist, blacklist, leverage caps) after creation. The creator and manager may be the same address. |
| Manager | The address authorized to place orders on behalf of the vault. Set at creation, or claimed later via claim_lake_manager on a manager-less vault. The manager deposits capital and holds Manager Shares. Their earnings come from their pro-rata share of returns plus an optional performance fee. |
| LP / Depositor | Any address that deposits USDC into the vault. Receives LP Shares priced at the vault’s NAV at the time of deposit. LPs bear trading risk proportional to their share of the pool. |
Share Classes
A vault maintains two independent share classes against the same underlying account balance and set of positions:- Manager Shares are minted when the manager deposits and burned when the manager withdraws. They route the manager’s pro-rata profits and losses through manager-side economics, including the performance fee on gains above the high-water mark.
- LP Shares are minted to all other depositors. LP share pricing tracks the LP-side balance, which moves with the vault’s PnL after the performance fee is applied.
Creating a Vault
Prepare your configuration
Decide on your vault’s parameters: symbol whitelist/blacklist, per-symbol leverage caps, deposit cap, performance fee (
manager_profit_share), minimum lock-up (deposit_min_duration_ms), manager balance requirements, and any withdrawal window settings. All fields are optional — omitting a field means no constraint of that type is applied.Choose a manager address
Specify a
manager address in the creation call. If you leave it blank, the vault is created as a “fresh vault” — any address can later claim the manager seat by depositing at least 10 USDC and meeting the manager_min_balance_portion requirement (if configured).Optionally add a nickname
Nicknames are unique across all vaults and appear on the vaults page. A vault may be left unnamed.
Submit the creation call
Call
create_lake signed by the creator’s wallet. A 10 USDC creation fee is charged. The vault is assigned a fresh address and starts with zero balance, zero shares, and no open positions.A vault may itself be designated as the manager of another vault (a “subvault”), but nesting is limited to one level.
Depositing as an LP
Deposits are converted into LP Shares at the vault’s current NAV per share. Before a deposit is processed, the engine runs a ledger sync that credits the period’s accumulated PnL to existing shareholders, ensuring new depositors do not retroactively capture gains or losses that occurred before their entry.Deposit Constraints
| Constraint | Value / Source | Effect |
|---|---|---|
| Minimum deposit | 10 USDC (constant) | Smaller amounts are rejected |
| Deposit cap | deposit_cap in vault config | Total LP balance after deposit cannot exceed this cap; manager deposits are excluded from the cap |
| Available balance | Standard cross-margin check | Depositor must have sufficient available_to_withdraw |
Withdrawing
Withdrawals are denominated in shares. The amount you receive is your proportional claim on the LP-side balance after the period’s PnL has been credited.- You hold at least the requested number of shares.
- If
deposit_min_duration_ms > 0, that many milliseconds have elapsed since your most recent deposit. Each new deposit resets the timer for your entire share balance. - If
withdraw_window_sandwithdraw_duration_sare configured, the current time falls within an open window:current_unix_time_s mod withdraw_window_s < withdraw_duration_s. Windows are anchored to the Unix epoch, not to the vault’s creation time. - The vault has sufficient
available_to_withdraw. If the manager has the vault fully deployed in positions, withdrawals may be delayed until positions are reduced.
Depositor Risks
Before depositing, review the vault’s configuration and understand the specific exposures:| Risk | Description |
|---|---|
| Trading risk | The manager’s positions can lose money. Losses are taken from the LP balance pro-rata with the manager’s balance. Liquidations reduce the vault’s USDC and may force a withdrawal queue if available_to_withdraw drops to zero. |
| Manager risk | The manager has full discretion within the configured constraints. The creator may also widen those constraints over time — for example, adding new symbols to the whitelist or increasing leverage caps. |
| Liquidity risk | Withdrawals require the vault to have free balance. Large drawdowns or fully-deployed positions can delay withdrawals until the manager closes positions or liquidations run. |
| Window risk | A vault with withdraw_window_s / withdraw_duration_s configured is not redeemable outside the open window. Plan around the configured cycle. |
| Counterparty risk | A vault deployed by a third party is not Pacifica-operated and is not insured by Pacifica. Pacifica does not audit, vet, or endorse any vault manager. |
Managing a Vault
The vault is a standard Pacifica account. The manager places orders through the trading interface or via the standard order REST endpoints, signed by the manager’s wallet or by an agent key bound to the manager’s address. All Pacifica trading rules apply: order types, margin model, funding rates, mark-price liquidations. The manager is additionally bound by the vault’s own trading constraints:| Constraint | Behavior |
|---|---|
whitelist | Order symbol must be in the whitelist. If unset, all listed symbols are permitted. |
blacklist | Order symbol must not be in the blacklist. Applied after the whitelist; a symbol in both lists is always blocked. |
max_leverages[symbol] | Leverage on the order cannot exceed this per-symbol cap. If unset, the exchange-default max leverage applies. |
trading_halt | If true, all order submissions are rejected. Set automatically by the liquidation engine; cleared by a manager top-up past manager_min_balance_portion. |
Configuration Mutability
| Field | Mutable by Creator? |
|---|---|
deposit_cap | ✅ Yes |
whitelist | ✅ Yes |
blacklist | ✅ Yes |
max_leverages | ✅ Yes |
manager_profit_share | ❌ No (fixed at creation) |
deposit_min_duration_ms | ❌ No (fixed at creation) |
manager_min_balance_portion | ❌ No (fixed at creation) |
manager_liquidation_balance_portion | ❌ No (fixed at creation) |
withdraw_window_s / withdraw_duration_s | ❌ No (fixed at creation) |
Profit & Loss
Ledger Sync
Every deposit or withdrawal triggers a ledger sync that attributes the period’s accumulated PnL to existing share classes before any share count changes:manager_profit_share is unset, no performance fee is taken.
Performance Fee and High-Water Mark
The performance fee is charged only on equity above the previous all-time peak (the high-water mark, or HWM). If the vault is in drawdown, no fee accrues until the prior peak is fully recovered. The HWM adjusts for capital flows so that deposits and withdrawals do not artificially trigger or skip fees:- On deposit: HWM increases by the deposit amount.
- On withdrawal: HWM decreases by the gross dollar amount paid out.
Worked Example: Profit Period
A vault withmanager_profit_share = 0.20, starting at equity 1,000 (LP: 800, Manager: 200, HWM: 1,000), trades up to 1,100:
Loss Attribution
If PnL over a period is negative, the loss is split pro-rata between LP and Manager balances. No performance fee accrues and the HWM does not change.Worked Example: Loss Period
The same vault starts a period at equity 1,000 (LP: 800, Manager: 200, HWM: 1,000) and trades down to 900:Risk Controls
Manager Balance Thresholds
The manager’s balance portion is:| Threshold | Role |
|---|---|
manager_liquidation_balance_portion | When the live ratio falls below this value, the engine sets trading_halt = true and liquidates open positions. |
manager_min_balance_portion | Required to claim the manager seat on a fresh vault and to lift a halt after liquidation. Must be strictly greater than manager_liquidation_balance_portion. |
Trading Halt and Lift
When a halt is triggered, all order submissions on the vault are rejected. The manager lifts the halt by depositing enough capital to bringmanager_balance_portion back above manager_min_balance_portion.