pub struct Clmmpool {Show 19 fields
pub clmm_config: Pubkey,
pub token_a: Pubkey,
pub token_b: Pubkey,
pub token_a_vault: Pubkey,
pub token_b_vault: Pubkey,
pub tick_spacing: u16,
pub tick_spacing_seed: u16,
pub fee_rate: u16,
pub protocol_fee_rate: u16,
pub liquidity: u128,
pub current_sqrt_price: u128,
pub current_tick_index: i32,
pub fee_growth_global_a: u128,
pub fee_growth_global_b: u128,
pub fee_protocol_token_a: u64,
pub fee_protocol_token_b: u64,
pub bump: u8,
pub reward_infos: Rewarders,
pub reward_last_updated_time: u64,
}Fields
clmm_config: Pubkeyclmm_config
token_a: PubkeyThe pool token a mint address.
token_b: PubkeyThe pool token b mint address.
token_a_vault: PubkeyThe vault for hold clmmpool’s token a.
token_b_vault: PubkeyThe vault for hold clmmpool’s token b.
tick_spacing: u16The tick spacing.
tick_spacing_seed: u16fee_rate: u16The numerator of fee rate, the denominator is 1_000_000.
protocol_fee_rate: u16The numerator of protocol fee rate, the denominator is 1_000_0. Protocol fee amount = fee_amount * protocol_fee_rate.
liquidity: u128The liquidity of current tick index.
current_sqrt_price: u128The current sqrt price, Q64.64 and MAX/MIN is Q32.64.
current_tick_index: i32The current tick index.
fee_growth_global_a: u128The fee growth a as Q64.64.
fee_growth_global_b: u128The fee growth b as Q64.64.
fee_protocol_token_a: u64The amounts of token a owed to protocol.
fee_protocol_token_b: u64The amounts of token b owed to protocol.
bump: u8The bump
reward_infos: Rewardersreward_last_updated_time: u64Implementations
sourceimpl Clmmpool
impl Clmmpool
pub const REWARD_NUM: usize = 3usize
pub const LEN: usize = 741usize
pub fn get_info(rpc_client: &RpcClient, pubkey: &Pubkey) -> Self
pub fn get_tick_map_address(pool: &Pubkey) -> Pubkey
pub fn get_ui_info(self, clmmpool: Pubkey) -> ClmmpoolUiList
Trait Implementations
sourceimpl BorshDeserialize for Clmmpool where
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
u16: BorshDeserialize,
u16: BorshDeserialize,
u16: BorshDeserialize,
u16: BorshDeserialize,
u128: BorshDeserialize,
u128: BorshDeserialize,
i32: BorshDeserialize,
u128: BorshDeserialize,
u128: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u8: BorshDeserialize,
Rewarders: BorshDeserialize,
u64: BorshDeserialize,
impl BorshDeserialize for Clmmpool where
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
u16: BorshDeserialize,
u16: BorshDeserialize,
u16: BorshDeserialize,
u16: BorshDeserialize,
u128: BorshDeserialize,
u128: BorshDeserialize,
i32: BorshDeserialize,
u128: BorshDeserialize,
u128: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u8: BorshDeserialize,
Rewarders: BorshDeserialize,
u64: BorshDeserialize,
sourceimpl Tabled for Clmmpool
impl Tabled for Clmmpool
impl Copy for Clmmpool
Auto Trait Implementations
impl RefUnwindSafe for Clmmpool
impl Send for Clmmpool
impl Sync for Clmmpool
impl Unpin for Clmmpool
impl UnwindSafe for Clmmpool
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more