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: Pubkey

clmm_config

token_a: Pubkey

The pool token a mint address.

token_b: Pubkey

The pool token b mint address.

token_a_vault: Pubkey

The vault for hold clmmpool’s token a.

token_b_vault: Pubkey

The vault for hold clmmpool’s token b.

tick_spacing: u16

The tick spacing.

tick_spacing_seed: u16fee_rate: u16

The numerator of fee rate, the denominator is 1_000_000.

protocol_fee_rate: u16

The numerator of protocol fee rate, the denominator is 1_000_0. Protocol fee amount = fee_amount * protocol_fee_rate.

liquidity: u128

The liquidity of current tick index.

current_sqrt_price: u128

The current sqrt price, Q64.64 and MAX/MIN is Q32.64.

current_tick_index: i32

The current tick index.

fee_growth_global_a: u128

The fee growth a as Q64.64.

fee_growth_global_b: u128

The fee growth b as Q64.64.

fee_protocol_token_a: u64

The amounts of token a owed to protocol.

fee_protocol_token_b: u64

The amounts of token b owed to protocol.

bump: u8

The bump

reward_infos: Rewardersreward_last_updated_time: u64

Implementations

Trait Implementations

Deserializes this instance from a given slice of bytes. Updates the buffer to point at the remaining bytes. Read more

Deserialize this instance from a slice of bytes.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

A length of fields and headers, which must be the same. Read more

Fields method must return a list of cells. Read more

Headers must return a list of column names.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The resulting type after obtaining ownership.

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

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more