Struct cyclos_core::states::position::CollectEvent
source · [−]pub struct CollectEvent {
pub pool_state: Pubkey,
pub owner: Pubkey,
pub tick_lower: i32,
pub tick_upper: i32,
pub amount_0: u64,
pub amount_1: u64,
}Expand description
Emitted when fees are collected by the owner of a position Collect events may be emitted with zero amount_0 and amount_1 when the caller chooses not to collect fees
Fields
pool_state: PubkeyThe pool from which fees are collected
owner: PubkeyThe owner of the position for which fees are collected
tick_lower: i32The lower tick of the position
tick_upper: i32The upper tick of the position
amount_0: u64The amount of token_0 fees collected
amount_1: u64The amount of token_1 fees collected
Trait Implementations
sourceimpl BorshDeserialize for CollectEvent where
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
i32: BorshDeserialize,
i32: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
impl BorshDeserialize for CollectEvent where
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
i32: BorshDeserialize,
i32: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
sourceimpl BorshSerialize for CollectEvent where
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
i32: BorshSerialize,
i32: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
impl BorshSerialize for CollectEvent where
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
i32: BorshSerialize,
i32: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
sourceimpl Discriminator for CollectEvent
impl Discriminator for CollectEvent
fn discriminator() -> [u8; 8]
Auto Trait Implementations
impl RefUnwindSafe for CollectEvent
impl Send for CollectEvent
impl Sync for CollectEvent
impl Unpin for CollectEvent
impl UnwindSafe for CollectEvent
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