pub struct MeteoraAmmPoolIdl {Show 16 fields
pub discriminator: [u8; 8],
pub lp_mint: Pubkey,
pub token_a_mint: Pubkey,
pub token_b_mint: Pubkey,
pub a_vault: Pubkey,
pub b_vault: Pubkey,
pub a_vault_lp: Pubkey,
pub b_vault_lp: Pubkey,
pub a_vault_lp_bump: u8,
pub enabled: bool,
pub protocol_token_a_fee: Pubkey,
pub protocol_token_b_fee: Pubkey,
pub fee_last_updated_at: u64,
pub padding0: [u8; 24],
pub fees: AmmPoolFees,
pub garbage: [u8; 590],
}Fields§
§discriminator: [u8; 8]§lp_mint: PubkeyLP token mint of the pool
token_a_mint: PubkeyToken A mint of the pool. Eg: USDT
token_b_mint: PubkeyToken B mint of the pool. Eg: USDC
a_vault: PubkeyVault account for token A. Token A of the pool will be deposit / withdraw from this vault account.
b_vault: PubkeyVault account for token B. Token B of the pool will be deposit / withdraw from this vault account.
a_vault_lp: PubkeyLP token account of vault A. Used to receive/burn the vault LP upon deposit/withdraw from the vault.
b_vault_lp: PubkeyLP token account of vault B. Used to receive/burn the vault LP upon deposit/withdraw from the vault.
a_vault_lp_bump: u8“A” vault lp bump. Used to create signer seeds.
enabled: boolFlag to determine whether the pool is enabled, or disabled.
protocol_token_a_fee: PubkeyProtocol fee token account for token A. Used to receive trading fee.
protocol_token_b_fee: PubkeyProtocol fee token account for token B. Used to receive trading fee.
fee_last_updated_at: u64Fee last updated timestamp
padding0: [u8; 24]§fees: AmmPoolFeesStore the fee charges setting.
garbage: [u8; 590]Trait Implementations§
Source§impl BorshDeserialize for MeteoraAmmPoolIdl
impl BorshDeserialize for MeteoraAmmPoolIdl
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Auto Trait Implementations§
impl Freeze for MeteoraAmmPoolIdl
impl RefUnwindSafe for MeteoraAmmPoolIdl
impl Send for MeteoraAmmPoolIdl
impl Sync for MeteoraAmmPoolIdl
impl Unpin for MeteoraAmmPoolIdl
impl UnwindSafe for MeteoraAmmPoolIdl
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more