Struct cyclos_core::states::pool::PoolCreatedAndInitialized
source · [−]pub struct PoolCreatedAndInitialized {
pub token_0: Pubkey,
pub token_1: Pubkey,
pub fee: u32,
pub tick_spacing: u16,
pub pool_state: Pubkey,
pub sqrt_price_x32: u64,
pub tick: i32,
}Expand description
Emitted when a pool is created and initialized with a starting price
Fields
token_0: PubkeyThe first token of the pool by address sort order
token_1: PubkeyThe second token of the pool by address sort order
fee: u32The fee collected upon every swap in the pool, denominated in hundredths of a bip
tick_spacing: u16The minimum number of ticks between initialized ticks
pool_state: PubkeyThe address of the created pool
sqrt_price_x32: u64The initial sqrt price of the pool, as a Q32.32
tick: i32The initial tick of the pool, i.e. log base 1.0001 of the starting price of the pool
Trait Implementations
sourceimpl BorshDeserialize for PoolCreatedAndInitialized where
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
u32: BorshDeserialize,
u16: BorshDeserialize,
Pubkey: BorshDeserialize,
u64: BorshDeserialize,
i32: BorshDeserialize,
impl BorshDeserialize for PoolCreatedAndInitialized where
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
u32: BorshDeserialize,
u16: BorshDeserialize,
Pubkey: BorshDeserialize,
u64: BorshDeserialize,
i32: BorshDeserialize,
sourceimpl BorshSerialize for PoolCreatedAndInitialized where
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
u32: BorshSerialize,
u16: BorshSerialize,
Pubkey: BorshSerialize,
u64: BorshSerialize,
i32: BorshSerialize,
impl BorshSerialize for PoolCreatedAndInitialized where
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
u32: BorshSerialize,
u16: BorshSerialize,
Pubkey: BorshSerialize,
u64: BorshSerialize,
i32: BorshSerialize,
sourceimpl Discriminator for PoolCreatedAndInitialized
impl Discriminator for PoolCreatedAndInitialized
fn discriminator() -> [u8; 8]
Auto Trait Implementations
impl RefUnwindSafe for PoolCreatedAndInitialized
impl Send for PoolCreatedAndInitialized
impl Sync for PoolCreatedAndInitialized
impl Unpin for PoolCreatedAndInitialized
impl UnwindSafe for PoolCreatedAndInitialized
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