pub struct DbcVirtualPool {Show 28 fields
pub discriminator: [u8; 8],
pub volatility_tracker: VolatilityTracker,
pub config: Pubkey,
pub creator: Pubkey,
pub base_mint: Pubkey,
pub base_vault: Pubkey,
pub quote_vault: Pubkey,
pub base_reserve: u64,
pub quote_reserve: u64,
pub protocol_base_fee: u64,
pub protocol_quote_fee: u64,
pub partner_base_fee: u64,
pub partner_quote_fee: u64,
pub sqrt_price: u128,
pub activation_point: u64,
pub pool_type: u8,
pub is_migrated: u8,
pub is_partner_withdraw_surplus: u8,
pub is_protocol_withdraw_surplus: u8,
pub migration_progress: u8,
pub is_withdraw_leftover: u8,
pub is_creator_withdraw_surplus: u8,
pub migration_fee_withdraw_status: u8,
pub metrics: PoolMetrics,
pub finish_curve_timestamp: u64,
pub creator_base_fee: u64,
pub creator_quote_fee: u64,
pub _padding_1: [u64; 7],
}Fields§
§discriminator: [u8; 8]§volatility_tracker: VolatilityTracker§config: Pubkey§creator: Pubkey§base_mint: Pubkey§base_vault: Pubkey§quote_vault: Pubkey§base_reserve: u64§quote_reserve: u64§protocol_base_fee: u64§protocol_quote_fee: u64§partner_base_fee: u64§partner_quote_fee: u64§sqrt_price: u128§activation_point: u64§pool_type: u8§is_migrated: u8§is_partner_withdraw_surplus: u8§is_protocol_withdraw_surplus: u8§migration_progress: u8§is_withdraw_leftover: u8§is_creator_withdraw_surplus: u8§migration_fee_withdraw_status: u8§metrics: PoolMetrics§finish_curve_timestamp: u64§creator_base_fee: u64§creator_quote_fee: u64§_padding_1: [u64; 7]Trait Implementations§
Source§impl BorshDeserialize for DbcVirtualPool
impl BorshDeserialize for DbcVirtualPool
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Auto Trait Implementations§
impl Freeze for DbcVirtualPool
impl RefUnwindSafe for DbcVirtualPool
impl Send for DbcVirtualPool
impl Sync for DbcVirtualPool
impl Unpin for DbcVirtualPool
impl UnwindSafe for DbcVirtualPool
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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