FusionammError

Enum FusionammError 

Source
pub enum FusionammError {
Show 64 variants InvalidEnum = 6_000, InvalidStartTick = 6_001, TickArrayExistInPool = 6_002, TickArrayIndexOutofBounds = 6_003, InvalidTickSpacing = 6_004, ClosePositionNotEmpty = 6_005, DivideByZero = 6_006, NumberCastError = 6_007, NumberDownCastError = 6_008, TickNotFound = 6_009, InvalidTickIndex = 6_010, SqrtPriceOutOfBounds = 6_011, LiquidityZero = 6_012, LiquidityTooHigh = 6_013, LiquidityOverflow = 6_014, LiquidityUnderflow = 6_015, LiquidityNetError = 6_016, TokenMaxExceeded = 6_017, TokenMinSubceeded = 6_018, MissingOrInvalidDelegate = 6_019, InvalidPositionTokenAmount = 6_020, InvalidTimestampConversion = 6_021, InvalidTimestamp = 6_022, InvalidTickArraySequence = 6_023, InvalidTokenMintOrder = 6_024, SetRangeForNonEmptyPosition = 6_025, ClpRewardRateMaxExceeded = 6_026, RewardVaultAmountInsufficient = 6_027, FeeRateMaxExceeded = 6_028, ProtocolFeeRateMaxExceeded = 6_029, MultiplicationShiftRightOverflow = 6_030, MulDivOverflow = 6_031, MulDivInvalidInput = 6_032, MultiplicationOverflow = 6_033, InvalidSqrtPriceLimitDirection = 6_034, ZeroTradableAmount = 6_035, AmountOutBelowMinimum = 6_036, AmountInAboveMaximum = 6_037, TickArraySequenceInvalidIndex = 6_038, AmountCalcOverflow = 6_039, AmountRemainingOverflow = 6_040, InvalidIntermediaryMint = 6_041, DuplicateTwoHopPool = 6_042, InvalidBundleIndex = 6_043, BundledPositionAlreadyOpened = 6_044, BundledPositionAlreadyClosed = 6_045, PositionBundleNotDeletable = 6_046, UnsupportedTokenMint = 6_047, RemainingAccountsInvalidSlice = 6_048, RemainingAccountsInsufficient = 6_049, NoExtraAccountsForTransferHook = 6_050, IntermediateTokenAmountMismatch = 6_051, TransferFeeCalculationError = 6_052, RemainingAccountsDuplicatedAccountsType = 6_053, FullRangeOnlyPool = 6_054, TooManySupplementalTickArrays = 6_055, DifferentFusionPoolTickArrayAccount = 6_056, PartialFillError = 6_057, TakerOrderNotSupported = 6_058, LimitOrderAmountExceeded = 6_059, LimitOrderNotEmpty = 6_060, LimitOrderIsFilled = 6_061, ZeroAmount = 6_062, ResetPriceForNonEmptyPool = 6_063,
}

Variants§

§

InvalidEnum = 6_000

6000 - Enum value could not be converted

§

InvalidStartTick = 6_001

6001 - Invalid start tick index provided.

§

TickArrayExistInPool = 6_002

6002 - Tick-array already exists in this fusion_pool

§

TickArrayIndexOutofBounds = 6_003

6003 - Attempt to search for a tick-array failed

§

InvalidTickSpacing = 6_004

6004 - Tick-spacing is not supported

§

ClosePositionNotEmpty = 6_005

6005 - Position is not empty It cannot be closed

§

DivideByZero = 6_006

6006 - Unable to divide by zero

§

NumberCastError = 6_007

6007 - Unable to cast number into BigInt

§

NumberDownCastError = 6_008

6008 - Unable to down cast number

§

TickNotFound = 6_009

6009 - Tick not found within tick array

§

InvalidTickIndex = 6_010

6010 - Provided tick index is either out of bounds or uninitializable

§

SqrtPriceOutOfBounds = 6_011

6011 - Provided sqrt price out of bounds

§

LiquidityZero = 6_012

6012 - Liquidity amount must be greater than zero

§

LiquidityTooHigh = 6_013

6013 - Liquidity amount must be less than i64::MAX

§

LiquidityOverflow = 6_014

6014 - Liquidity overflow

§

LiquidityUnderflow = 6_015

6015 - Liquidity underflow

§

LiquidityNetError = 6_016

6016 - Tick liquidity net underflowed or overflowed

§

TokenMaxExceeded = 6_017

6017 - Exceeded token max

§

TokenMinSubceeded = 6_018

6018 - Did not meet token min

§

MissingOrInvalidDelegate = 6_019

6019 - Position token account has a missing or invalid delegate

§

InvalidPositionTokenAmount = 6_020

6020 - Position token amount must be 1

§

InvalidTimestampConversion = 6_021

6021 - Timestamp should be convertible from i64 to u64

§

InvalidTimestamp = 6_022

6022 - Timestamp should be greater than the last updated timestamp

§

InvalidTickArraySequence = 6_023

6023 - Invalid tick array sequence provided for instruction.

§

InvalidTokenMintOrder = 6_024

6024 - Token Mint in wrong order

§

SetRangeForNonEmptyPosition = 6_025

6025 - Position is not empty, range can’t be set.

§

ClpRewardRateMaxExceeded = 6_026

6026 - Exceeded reward ratio of concentrated liquidity providers to limit orders’ liquidity providers

§

RewardVaultAmountInsufficient = 6_027

6027 - Reward vault requires amount to support emissions for at least one day

§

FeeRateMaxExceeded = 6_028

6028 - Exceeded max fee rate

§

ProtocolFeeRateMaxExceeded = 6_029

6029 - Exceeded max protocol fee rate

§

MultiplicationShiftRightOverflow = 6_030

6030 - Multiplication with shift right overflow

§

MulDivOverflow = 6_031

6031 - Muldiv overflow

§

MulDivInvalidInput = 6_032

6032 - Invalid div_u256 input

§

MultiplicationOverflow = 6_033

6033 - Multiplication overflow

§

InvalidSqrtPriceLimitDirection = 6_034

6034 - Provided SqrtPriceLimit not in the same direction as the swap.

§

ZeroTradableAmount = 6_035

6035 - There are no tradable amount to swap.

§

AmountOutBelowMinimum = 6_036

6036 - Amount out below minimum threshold

§

AmountInAboveMaximum = 6_037

6037 - Amount in above maximum threshold

§

TickArraySequenceInvalidIndex = 6_038

6038 - Invalid index for tick array sequence

§

AmountCalcOverflow = 6_039

6039 - Amount calculated overflows

§

AmountRemainingOverflow = 6_040

6040 - Amount remaining overflows

§

InvalidIntermediaryMint = 6_041

6041 - Invalid intermediary mint

§

DuplicateTwoHopPool = 6_042

6042 - Duplicate two hop pool

§

InvalidBundleIndex = 6_043

6043 - Bundle index is out of bounds

§

BundledPositionAlreadyOpened = 6_044

6044 - Position has already been opened

§

BundledPositionAlreadyClosed = 6_045

6045 - Position has already been closed

§

PositionBundleNotDeletable = 6_046

6046 - Unable to delete PositionBundle with open positions

§

UnsupportedTokenMint = 6_047

6047 - Token mint has unsupported attributes

§

RemainingAccountsInvalidSlice = 6_048

6048 - Invalid remaining accounts

§

RemainingAccountsInsufficient = 6_049

6049 - Insufficient remaining accounts

§

NoExtraAccountsForTransferHook = 6_050

6050 - Unable to call transfer hook without extra accounts

§

IntermediateTokenAmountMismatch = 6_051

6051 - Output and input amount mismatch

§

TransferFeeCalculationError = 6_052

6052 - Transfer fee calculation failed

§

RemainingAccountsDuplicatedAccountsType = 6_053

6053 - Same accounts type is provided more than once

§

FullRangeOnlyPool = 6_054

6054 - This fusion_pool only supports full-range positions

§

TooManySupplementalTickArrays = 6_055

6055 - Too many supplemental tick arrays provided

§

DifferentFusionPoolTickArrayAccount = 6_056

6056 - TickArray account for different fusion_pool provided

§

PartialFillError = 6_057

6057 - Trade resulted in partial fill

§

TakerOrderNotSupported = 6_058

6058 - The limit order tick index is incorrect relative to the current market tick (taker order)

§

LimitOrderAmountExceeded = 6_059

6059 - Exceeded the limit order deposited input amount

§

LimitOrderNotEmpty = 6_060

6060 - Limit order is not empty and cannot be closed

§

LimitOrderIsFilled = 6_061

6061 - Unable to increase a limit order because it’s partially or fully filled

§

ZeroAmount = 6_062

6062 - Zero amount

§

ResetPriceForNonEmptyPool = 6_063

6063 - Can’t reset the price because a pool is not empty

Trait Implementations§

Source§

impl Clone for FusionammError

Source§

fn clone(&self) -> FusionammError

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FusionammError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for FusionammError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for FusionammError

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<FusionammError> for ProgramError

Source§

fn from(e: FusionammError) -> Self

Converts to this type from the input type.
Source§

impl FromPrimitive for FusionammError

Source§

fn from_i64(n: i64) -> Option<Self>

Converts an i64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u64(n: u64) -> Option<Self>

Converts an u64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_isize(n: isize) -> Option<Self>

Converts an isize to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_i8(n: i8) -> Option<Self>

Converts an i8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_i16(n: i16) -> Option<Self>

Converts an i16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_i32(n: i32) -> Option<Self>

Converts an i32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_i128(n: i128) -> Option<Self>

Converts an i128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

fn from_usize(n: usize) -> Option<Self>

Converts a usize to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u8(n: u8) -> Option<Self>

Converts an u8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u16(n: u16) -> Option<Self>

Converts an u16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u32(n: u32) -> Option<Self>

Converts an u32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u128(n: u128) -> Option<Self>

Converts an u128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

fn from_f32(n: f32) -> Option<Self>

Converts a f32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_f64(n: f64) -> Option<Self>

Converts a f64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

impl PartialEq for FusionammError

Source§

fn eq(&self, other: &FusionammError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for FusionammError

Source§

impl StructuralPartialEq for FusionammError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V