pub enum SwapQuoteErrorCode {
Show 15 variants
InvalidArgument,
UnsupportedChain,
UnknownPool,
ChainMismatch,
InvalidPoolState,
UnknownToken,
TokenNotActive,
UnsupportedTokenStandard,
UnsupportedToken,
PoolTokenMismatch,
UnsupportedAdapter,
ProgramMismatch,
StateStale,
InsufficientLiquidity,
Arithmetic,
}Expand description
Fixed domain error codes for exact-input quote validation.
Variants§
InvalidArgument
The request shape, identifiers, amount, or freshness values are invalid.
UnsupportedChain
The requested chain is not represented by the DEX catalog.
UnknownPool
The requested pool identifier is unknown.
ChainMismatch
The selected pool or token record is on another chain.
InvalidPoolState
A selected pool or DEX record is not active or otherwise valid.
UnknownToken
An input or output token identifier is unknown.
TokenNotActive
A selected token record is not active.
UnsupportedTokenStandard
A selected token standard is outside the quote adapter boundary.
UnsupportedToken
The selected token or pool is outside the reviewed quote capability.
PoolTokenMismatch
The requested pair is not the selected pool pair.
UnsupportedAdapter
The selected pool adapter cannot produce this quote.
ProgramMismatch
The on-chain factory or pool program identity does not match the catalog.
StateStale
The block snapshot is stale, inconsistent, or reorged.
InsufficientLiquidity
The pool has no usable liquidity for the requested direction.
Arithmetic
A checked uint256 calculation or fee configuration is invalid.
Implementations§
Source§impl SwapQuoteErrorCode
impl SwapQuoteErrorCode
Sourcepub const SWAP_INVALID_ARGUMENT: Self = Self::InvalidArgument
pub const SWAP_INVALID_ARGUMENT: Self = Self::InvalidArgument
Stable spelling for Self::InvalidArgument.
Sourcepub const SWAP_UNSUPPORTED_CHAIN: Self = Self::UnsupportedChain
pub const SWAP_UNSUPPORTED_CHAIN: Self = Self::UnsupportedChain
Stable spelling for Self::UnsupportedChain.
Sourcepub const SWAP_UNKNOWN_POOL: Self = Self::UnknownPool
pub const SWAP_UNKNOWN_POOL: Self = Self::UnknownPool
Stable spelling for Self::UnknownPool.
Sourcepub const SWAP_CHAIN_MISMATCH: Self = Self::ChainMismatch
pub const SWAP_CHAIN_MISMATCH: Self = Self::ChainMismatch
Stable spelling for Self::ChainMismatch.
Sourcepub const SWAP_INVALID_POOL_STATE: Self = Self::InvalidPoolState
pub const SWAP_INVALID_POOL_STATE: Self = Self::InvalidPoolState
Stable spelling for Self::InvalidPoolState.
Sourcepub const SWAP_UNKNOWN_TOKEN: Self = Self::UnknownToken
pub const SWAP_UNKNOWN_TOKEN: Self = Self::UnknownToken
Stable spelling for Self::UnknownToken.
Sourcepub const SWAP_TOKEN_NOT_ACTIVE: Self = Self::TokenNotActive
pub const SWAP_TOKEN_NOT_ACTIVE: Self = Self::TokenNotActive
Stable spelling for Self::TokenNotActive.
Sourcepub const SWAP_UNSUPPORTED_TOKEN_STANDARD: Self = Self::UnsupportedTokenStandard
pub const SWAP_UNSUPPORTED_TOKEN_STANDARD: Self = Self::UnsupportedTokenStandard
Stable spelling for Self::UnsupportedTokenStandard.
Sourcepub const SWAP_UNSUPPORTED_TOKEN: Self = Self::UnsupportedToken
pub const SWAP_UNSUPPORTED_TOKEN: Self = Self::UnsupportedToken
Stable spelling for Self::UnsupportedToken.
Sourcepub const SWAP_POOL_TOKEN_MISMATCH: Self = Self::PoolTokenMismatch
pub const SWAP_POOL_TOKEN_MISMATCH: Self = Self::PoolTokenMismatch
Stable spelling for Self::PoolTokenMismatch.
Sourcepub const SWAP_UNSUPPORTED_ADAPTER: Self = Self::UnsupportedAdapter
pub const SWAP_UNSUPPORTED_ADAPTER: Self = Self::UnsupportedAdapter
Stable spelling for Self::UnsupportedAdapter.
Sourcepub const SWAP_PROGRAM_MISMATCH: Self = Self::ProgramMismatch
pub const SWAP_PROGRAM_MISMATCH: Self = Self::ProgramMismatch
Stable spelling for Self::ProgramMismatch.
Sourcepub const SWAP_STATE_STALE: Self = Self::StateStale
pub const SWAP_STATE_STALE: Self = Self::StateStale
Stable spelling for Self::StateStale.
Sourcepub const SWAP_INSUFFICIENT_LIQUIDITY: Self = Self::InsufficientLiquidity
pub const SWAP_INSUFFICIENT_LIQUIDITY: Self = Self::InsufficientLiquidity
Stable spelling for Self::InsufficientLiquidity.
Sourcepub const SWAP_ARITHMETIC: Self = Self::Arithmetic
pub const SWAP_ARITHMETIC: Self = Self::Arithmetic
Stable spelling for Self::Arithmetic.