phoenix_onchain_mm/
errors.rs1use anchor_lang::prelude::*;
2
3#[error_code]
5pub enum StrategyError {
6 #[msg("invalid strategy params")]
7 InvalidStrategyParams,
8 #[msg("edge must be non-zero")]
9 EdgeMustBeNonZero,
10 #[msg("invalid phoenix program")]
11 InvalidPhoenixProgram,
12 #[msg("failed to deserialize phoenix market")]
13 FailedToDeserializePhoenixMarket,
14 #[msg("Argument is invalid.")]
15 InvalidArgument,
16 #[msg("Pyth has an internal error.")]
17 PythError,
18 #[msg("Pyth price oracle is offline.")]
19 PythOffline,
20 #[msg("Program should not try to serialize a price account.")]
21 TryToSerializePriceAccount,
22}