Errors

Anchor numbers custom errors from 6000 in the order they are declared.

CodeNameMessageWhen
6000NotUpgradeAuthorityonly the program upgrade authority may create the marketinit_market signed by anyone else
6001BadParamsparameters out of rangefunding period or TWAP window outside its bounds
6002Unauthorizednot alloweda vault or LP position used by someone who does not own it
6003Disableddisabled in this builda test-only instruction on the mainnet build
6004Zeroamount must be above zerozero deposits, mints, swaps or shares
6005TooMuchamount too largeburning more than the debt, withdrawing more than the collateral, liquidating more than half
6006Undercollateralizedvault would fall under 150%a mint or withdraw that would end under the line
6007NotLiquidatablevault is at or above 150%liquidating a healthy vault
6008Slippageprice moved past the limitswap output under min_out, or liquidity over max_tokens
6009EmptyPoolpool is emptya swap before anyone added liquidity
6010WrongOraclenot a SOL/USD price accountan oracle account not owned by the Pyth receiver
6011WrongFeedprice account is not SOL/USDanother Pyth feed
6012PartialVerificationprice update is only partially verifiedverification level is not Full
6013BadPricebad price datawrong layout or a price of zero or less
6014StalePriceprice is older than 120 secondspost a fresher Pyth update first
6015PriceTooUncertainprice confidence is wider than 2%wait for a tighter update
6016Mathmath overflowa value that does not fit

There is no error for liquidating a holder, because there is no instruction that could try.

Next: FAQ