pub struct PumpPoolQuoteCtx<'a> {
pub amm_global: &'a GlobalConfig,
pub amm_fee_config: Option<&'a FeeConfig>,
pub pool_state: &'a Pool,
pub base_reserve: u64,
pub quote_reserve: u64,
}Expand description
pump_amm pool quote inputs — like PumpPoolCtx but with the reserves and
fee config the AMM math needs.
Fields§
§amm_global: &'a GlobalConfig§amm_fee_config: Option<&'a FeeConfig>§pool_state: &'a Pool§base_reserve: u64§quote_reserve: u64Trait Implementations§
Source§impl<'a> Clone for PumpPoolQuoteCtx<'a>
impl<'a> Clone for PumpPoolQuoteCtx<'a>
Source§fn clone(&self) -> PumpPoolQuoteCtx<'a>
fn clone(&self) -> PumpPoolQuoteCtx<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for PumpPoolQuoteCtx<'a>
impl<'a> Debug for PumpPoolQuoteCtx<'a>
impl<'a> Copy for PumpPoolQuoteCtx<'a>
Auto Trait Implementations§
impl<'a> Freeze for PumpPoolQuoteCtx<'a>
impl<'a> RefUnwindSafe for PumpPoolQuoteCtx<'a>
impl<'a> Send for PumpPoolQuoteCtx<'a>
impl<'a> Sync for PumpPoolQuoteCtx<'a>
impl<'a> Unpin for PumpPoolQuoteCtx<'a>
impl<'a> UnsafeUnpin for PumpPoolQuoteCtx<'a>
impl<'a> UnwindSafe for PumpPoolQuoteCtx<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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