#[error_code]
pub enum ErrorCode {
#[msg("Amount is zero")]
ZeroAmount = 0,
#[msg("Output would be zero")]
ZeroOutput = 1,
#[msg("Not the expected tick")]
WrongTick = 2,
#[msg("Price limit is on the wrong side of price")]
WrongLimit = 3,
#[msg("Tick index not divisible by spacing or over limit")]
InvalidTickIndex = 4,
#[msg("Invalid tick_lower or tick_upper")]
InvalidTickInterval = 5,
#[msg("There is no more tick in that direction")]
NoMoreTicks = 6,
#[msg("Correct tick not found in context")]
TickNotFound = 7,
#[msg("Price would cross swap limit")]
PriceLimitReached = 8,
#[msg("Invalid tick liquidity")]
InvalidTickLiquidity = 9,
#[msg("Disable empty position pokes")]
EmptyPositionPokes = 10,
#[msg("Invalid position liquidity")]
InvalidPositionLiquidity = 11,
#[msg("Invalid pool liquidity")]
InvalidPoolLiquidity = 12,
#[msg("Invalid position index")]
InvalidPositionIndex = 13,
#[msg("Position liquidity would be zero")]
PositionWithoutLiquidity = 14,
#[msg("You are not admin")]
Unauthorized = 15,
#[msg("Invalid pool token addresses")]
InvalidPoolTokenAddresses = 16,
#[msg("Time cannot be negative")]
NegativeTime = 17,
#[msg("Oracle is already initialized")]
OracleAlreadyInitialized = 18,
#[msg("Absolute price limit was reached")]
LimitReached = 19,
#[msg("Invalid protocol fee")]
InvalidProtocolFee = 20,
#[msg("Swap amount out is 0")]
NoGainSwap = 21,
#[msg("Provided token account is different than expected")]
InvalidTokenAccount = 22,
#[msg("Admin address is different than expected")]
InvalidAdmin = 23,
#[msg("Provided authority is different than expected")]
InvalidAuthority = 24,
#[msg("Provided token owner is different than expected")]
InvalidOwner = 25,
#[msg("Provided token account mint is different than expected mint token")]
InvalidMint = 26,
#[msg("Provided tickmap is different than expected")]
InvalidTickmap = 27,
#[msg("Provided tickmap owner is different than program ID")]
InvalidTickmapOwner = 28,
#[msg("Recipient list address and owner list address should be different")]
InvalidListOwner = 29,
#[msg("Invalid tick spacing")]
InvalidTickSpacing = 30,
#[msg("Invalid token program")]
InvalidTokenProgram = 31,
#[msg("Invalid init sqrt price")]
InvalidInitSqrtPrice = 32,
#[msg("Transfer position is disabled for this pool")]
DisabledPool = 33,
}