VaultNotActive | Vault is not in Active state |
VaultNotPaused | Vault is not in Paused state |
ZeroDeposit | Deposit amount must be greater than zero |
InsufficientShares | Insufficient shares for withdrawal |
StaleOracle | Oracle price is stale (age > 30 s) |
OracleConfidenceTooWide | Oracle price confidence too wide (> 1%) |
MathOverflow | Math overflow |
Unauthorized | Not vault authority |
ZeroInsuranceSeed | Insurance fund seed amount must be greater than zero |
InsufficientLiquidity | Insufficient pool liquidity for withdrawal |
DeltaExceedsThreshold | Delta exceeds rebalance threshold |
InvalidParameter | Invalid parameter value |
NavCorrupted | NAV invariant violated. Call admin_resync_nav |
PerpsUserAccountAlreadyInit | Perps user account already initialized |
PerpsUserAccountNotInit | Call init_perps_user_account first |
PerpsMarketMismatch | Provided market does not match vault.perps_market |
PerpsMarketIndexMismatch | Perps market index mismatch |
PerpsUserAccountMismatch | Perps user account PDA mismatch |
NoHedgePosition | No hedge position open to close |
SpotPoolMismatch | Spot pool does not match vault.spot_pool |
WsolVaultMismatch | wSOL vault does not match vault.wsol_vault |
InsufficientWsol | Insufficient wSOL balance for withdrawal |
VaultNotMigrated | Spot leg not configured; call admin_setup_spot_leg first |
SpotLegAlreadySetup | Spot leg already configured |