Error reference
Every rejection has its own stable code, returned as custom program error: 0x.. (hex). The SDK's errorName(code) returns the name.
| Code | Name | When | What to do |
|---|---|---|---|
| 0 | InvalidInstruction | the data does not decode | rebuild the instruction with the SDK |
| 1 | NotUpgradeAuthority | init_config not signed by the upgrade authority | sign with the upgrade authority |
| 2 | NotAuthority | an authority-only action signed by another key | sign with the config authority |
| 3 | NotPendingAuthority | accept_authority signed by a key that was not named | sign with the pending authority |
| 4 | NotPoster | a print action signed by neither keeper nor authority | use the keeper or authority key |
| 5 | InvalidQuoteMint | the quote mint is not the configured USDC | pass the config's quote mint |
| 6 | InvalidProgramAccount | a token or system program account is wrong | pass the right program id |
| 7 | InvalidAccountKind | an account is not an RSTAR config or market | check the account order |
| 8 | AccountMismatch | a vault, mint, treasury or token account does not match the market | derive accounts from this market |
| 9 | InvalidMonth | month outside 1 to 12, or year out of range | list a real calendar month |
| 10 | InvalidTargetRate | target_mid above the 25% ceiling | pass a midpoint in rate units |
| 11 | ZeroAmount | amount of zero | send a positive amount |
| 12 | MathOverflow | a checked counter or sum would overflow | use a smaller amount |
| 13 | MarketSettled | minting or posting into a settled market | redeem with redeem_settled instead |
| 14 | MarketNotSettled | redeem_settled before settlement | wait for settle_market, or use redeem_pair |
| 15 | InvalidPrintDate | the date is not a valid yyyymmdd | post the NY Fed effectiveDate |
| 16 | PrintOutOfOrder | the date is not after every earlier print | post dates in increasing order |
| 17 | PrintOutsideMonth | the date is before the seed lookback or after the month | post only this month's prints and its seed |
| 18 | NoCarryRate | a print after the 1st with no earlier rate to carry | post the seed print first |
| 19 | PrintNotFinal | posted before 19:30 UTC on the day after the date | wait for the NY Fed's finality |
| 20 | RateOutOfRange | rate above 25% | check the units (1% = 10000) |
| 21 | MonthClosed | the final print already closed the month | settle the market |
| 22 | InvalidFinalFlag | a seed print marked final | post the seed without the final flag |
| 23 | PendingQueueFull | 8 prints already wait | fold ready prints, then post |
| 24 | PrintIndexOutOfRange | the index points past the queue | read pending_len first |
| 25 | DisputeWindowClosed | the print's 24 hours have passed | the print is permanent once folded |
| 26 | AlreadyDisputed | the print is already disputed | correct or void it |
| 27 | SettlementNotReady | the final print has not folded and the fallback time has not come | wait, or fold ready prints |
| 28 | InvalidSide | side other than 0 or 1 | 0 for LONG, 1 for SHORT |
| 29 | InvalidBucket | bucket other than 0 or 1 | 0 operations, 1 reserved |
| 30 | ClaimExceedsBalance | claiming more than the bucket accrued | read the claimable amount first |
| 31 | BuybackDestinationUnset | bucket 1 claimed before its destination was set | set it with update_config |
| 32 | InvalidPda | an account is not at its derived address | derive it from the seeds |
| 33 | CloseTooEarly | close_market before settlement plus 90 days | wait |
| 34 | OutstandingSupply | a side that still pays has holders | wait until it is redeemed |
| 35 | LiveMarkets | close_config with a market still open | close every market first |