use anchor_lang::prelude::*;
#[error_code]
pub enum ErrorCode {
#[msg("Not approved")]
NotApproved,
#[msg("Input account owner is not the program address")]
InvalidOwner,
#[msg("Input token account empty")]
EmptySupply,
#[msg("InvalidInput")]
InvalidInput,
#[msg("Address of the provided lp token mint is incorrect")]
IncorrectLpMint,
#[msg("Exceeds desired slippage limit")]
ExceededSlippage,
#[msg("Given pool token amount results in zero trading tokens")]
ZeroTradingTokens,
#[msg("Not support token_2022 mint extension")]
NotSupportMint,
#[msg("invaild vault")]
InvalidVault,
#[msg("Init lp amount is too less(Because 100 amount lp will be locked)")]
InitLpAmountTooLess,
#[msg("Sell result is none")]
SellResultNone,
#[msg("Buy result is none")]
BuyResultNone,
}