TAPER

Errors

Every error the program can return, from error.rs, with what to do about it.

ErrorMessageWhat it means
NotUpgradeAuthorityOnly the program's upgrade authority can set the launch configinit_config signed by someone else
NotListedMint is not one of the listed xStocksOnly NVDAx, AAPLx and TSLAx have markets
NotAnXStockAccount is not a Token-2022 xStock mintWrong mint account
TransferHookActiveThe xStock has a transfer hook switched onThe issuer enabled a hook; the program will not move the token
PoolInvalidPool account is not the market's Raydium poolPass the pool listed for the market
PoolObservationInvalidObservation account is not the pool'sPass the ring named in the pool account (offset 201)
PoolHistoryTooShortThe pool's price history does not reach back to the settlement windowSettle within about 25 minutes of the close; after an hour the day can be voided
PoolPairInvalidPool is not the xStock against USDC
PriceInvalidPrice is zero, negative or out of rangeBroken print; fetch new packages
MarketClosedThe market is not open todayWeekend, holiday or outside the session
SalesClosedSales are closed for todayWithin ten minutes of the close
DayLiveA day is live: deposits and withdrawals open after it settlesWait for settlement
AlreadyListedToday is already listedSomeone opened the day already
NothingToCoverThe vault holds nothing to cover callsNo deposits, so no day
DayNotLiveDay is not liveSettled or voided
BadStrikeStrike index out of rangeUse 0 to 4
ZeroAmountAmount must be above zero
CoverExhaustedNot enough unsold cover in the vaultToday's calls are sold out; buy fewer
PremiumAboveLimitPremium is above the buyer's limitThe price moved; requote
NotClosedYetThe market has not closed yetSettle after the bell
VoidTooEarlyThe day can only be voided an hour after the close
DayStillLiveDay is still liveSettle first
TicketsOutstandingTickets of this day are still unclaimedClose after every claim
ZeroSharesShares round to zeroDeposit more
InsufficientSharesNot enough sharesWithdraw less
VaultEmptyVault assets are zero while shares existShould never happen; report it
NothingToClaimNothing to claim
BurnPoolInvalidBurn pool must pair USDC with the TAPER mintLaunch config check
BurnTwapUnavailableBurn pool has no observation a full TWAP window oldThe pool is younger than 30 minutes
BurnAmountInvalidBurn amount is zero, above the fees held, above 1,000 USDC or above 0.1% of the poolSpend less
MathOverflowArithmetic overflow