Struct cyclos_core::states::pool::CollectProtocolEvent
source · [−]pub struct CollectProtocolEvent {
pub pool_state: Pubkey,
pub sender: Pubkey,
pub recipient_wallet_0: Pubkey,
pub recipient_wallet_1: Pubkey,
pub amount_0: u64,
pub amount_1: u64,
}Expand description
Emitted when the collected protocol fees are withdrawn by the factory owner
Fields
pool_state: PubkeyThe pool whose protocol fee is collected
sender: PubkeyThe address that collects the protocol fees
recipient_wallet_0: PubkeyThe address that receives the collected token_0 protocol fees
recipient_wallet_1: PubkeyThe address that receives the collected token_1 protocol fees
amount_0: u64The amount of token_0 protocol fees that is withdrawn
amount_1: u64The amount of token_0 protocol fees that is withdrawn
Trait Implementations
sourceimpl BorshDeserialize for CollectProtocolEvent where
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
impl BorshDeserialize for CollectProtocolEvent where
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
sourceimpl BorshSerialize for CollectProtocolEvent where
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
impl BorshSerialize for CollectProtocolEvent where
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
sourceimpl Discriminator for CollectProtocolEvent
impl Discriminator for CollectProtocolEvent
fn discriminator() -> [u8; 8]
Auto Trait Implementations
impl RefUnwindSafe for CollectProtocolEvent
impl Send for CollectProtocolEvent
impl Sync for CollectProtocolEvent
impl Unpin for CollectProtocolEvent
impl UnwindSafe for CollectProtocolEvent
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