Reference
Error reference
Every refusal the program can return for the instructions documented here, with what to change.
| Error | Message | Fix |
|---|---|---|
AssetCount | A fund holds between 2 and 8 assets | publish 2 to 8 mints |
QuoteMintFirst | The first asset must be the configured quote mint | put USDC first |
DuplicateMint | The same mint appears twice in one fund | remove the repeat |
BadWeights | Weights must each be at least the minimum and sum to 10000 bps | every weight at least 100 bps, total exactly 10,000 |
BadCovenant | The covenant itself is malformed | caps 100 to 10,000 bps, cash floor at most USDC's cap, fee bounds inside 10 to 2,000 |
GammaOutOfBounds | Fee parameter outside the covenant or program bounds | choose a fee inside the covenant |
GammaStepTooLarge | Fee parameter moved too far or too soon | at most 25 bps per change, one change a day |
RoyaltyTooHigh | Royalty above the program ceiling | at most 2,000 bps |
CovenantViolation | Weights break the covenant engraved at publish | keep every weight under its cap and USDC at or above the floor |
DriftTooFast | Target weights would move faster than the drift limit | set end later: at most 2 points a day per weight |
BadGlide | Glide window is malformed | start no earlier than now, end after start |
UnsupportedMint | Mint has an extension this pool cannot hold safely | see Security and trust for the screened extensions |
AccountMismatch | Account list does not match the pool's assets | pass (mint, vault, your account) per asset, in pool order |
AmountCount | Wrong number of per-asset amounts | one amount per asset |
BadStatus | Pool is not open for this action | seed before trading; publish before seeding |
SeedTooSmall | Seed amount below the minimum | at least 1,000 base units of every asset |
ReserveExhausted | Update would empty an asset | take out less |
NoOp | Update changes nothing | send a non-zero delta |
InvariantViolated | Update breaks the pool invariant: it would take value from the holders | pay more in or take less out; requote |
ZeroShares | Zero shares | ask for at least one base unit |
SlippageIn | Required amount above the caller's maximum | raise max_amounts or requote |
SlippageOut | Amount out below the caller's minimum | lower min_amounts or requote |
BadSkipMask | Skip mask names an asset the pool does not hold | only set bits below the asset count |
NothingToClaim | Nothing to claim | wait for owed shares or a deferred balance |
MathOverflow | Arithmetic overflow | use smaller amounts |