UNLIT

Error reference

Every error the fund program returns, in declaration order, with its message from error.rs.

NameMessage
InvalidParamsA parameter is above its hard ceiling or otherwise out of range
DuplicateMintTwo assets use the same mint
InvalidAssetIndexAsset index out of range
MixedTokenProgramsAll assets must use the same token program
RouteNotWhitelistedRoute program is invalid or not whitelisted
InvalidShareMintShare mint must be a fresh Token-2022 mint with only the confidential transfer extension
InvalidConfidentialConfigConfidential transfer config must auto-approve, have no auditor and no authority
InvalidFeeAccountFee share account must hold the fund's share mint
VaultMismatchVault account does not match the fund's vault for this asset
FundNotReadyNot every vault has been created yet
PausedFund is paused
UnauthorizedSigner is not the fund authority
NotPendingAuthoritySigner is not the proposed authority
OracleMismatchPrice account does not match the configured feed
OracleUnverifiedPrice update is not fully verified
OracleStalePrice update is older than the allowed age
OracleUncertainPrice confidence interval is too wide
OracleNonPositivePrice is zero or negative
MathOverflowArithmetic overflow
ZeroAmountAmount must be greater than zero
SharesBelowMinimumDeposit would mint fewer shares than the minimum asked for
OutputBelowMinimumRedemption would pay less than the minimum asked for
InvalidDestinationDestination account is not owned by the redeemer
PoolTooSmallPool value is below the minimum needed to ask the manager
DecisionCooldownLast decision is too recent
RulesNotSetNo rule set is active yet
StaleCallbackCallback does not belong to the latest request
NoPendingRulesNo sealed rule set is waiting
RulesDelayNotElapsedThe rule set change delay has not passed
AbortedComputationThe computation was aborted by the cluster
NoActionableOrderThere is no order to execute
OrderExpiredThe order has expired
TradeExceedsOrderTrade is larger than the order allows
TurnoverCapExceededTrade would exceed this epoch's turnover cap
NothingSoldThe route did not sell anything from the sell vault
SoldTooMuchThe route sold more than the amount in
NothingBoughtThe route did not deliver anything to the buy vault
UnexpectedVaultDecreaseA vault other than the sell vault lost tokens
VaultTamperedA vault's owner, delegate or close authority was changed
SlippageExceededOutput is worth less than the slippage band allows
TradeTooSmallTrade uses less than half of what the order allows

What to do