pub struct WithdrawEvent {
pub owner: Pubkey,
pub underlying_mint: Pubkey,
pub wrapped_mint: Pubkey,
pub withdraw_amount: u64,
pub burn_amount: u64,
pub dust_amount: u64,
}Expand description
Called when tokens are withdrawn from the wrapper.
Fields§
§owner: PubkeyOwner of the account that withdrew.
underlying_mint: PubkeyUnderlying token mint
wrapped_mint: PubkeyWrapped token mint
withdraw_amount: u64Amount withdrawn.
burn_amount: u64Wrapped tokens burned.
dust_amount: u64Wrapped tokens remaining as dust.
Trait Implementations§
Source§impl BorshDeserialize for WithdrawEvent
impl BorshDeserialize for WithdrawEvent
Source§impl BorshSerialize for WithdrawEvent
impl BorshSerialize for WithdrawEvent
Source§impl Discriminator for WithdrawEvent
impl Discriminator for WithdrawEvent
fn discriminator() -> [u8; 8]
Auto Trait Implementations§
impl Freeze for WithdrawEvent
impl RefUnwindSafe for WithdrawEvent
impl Send for WithdrawEvent
impl Sync for WithdrawEvent
impl Unpin for WithdrawEvent
impl UnwindSafe for WithdrawEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more