pub enum TradeVenue {
BondingCurve,
Amm {
pool: Pubkey,
},
}Expand description
Routing for PumpSdk::trade_tx_instructions. The bonding-curve path
uses buy_v2 / sell_v2; the AMM path targets the supplied pool with
buy_amm / sell_amm.
Variants§
Trait Implementations§
Source§impl Clone for TradeVenue
impl Clone for TradeVenue
Source§fn clone(&self) -> TradeVenue
fn clone(&self) -> TradeVenue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TradeVenue
impl Debug for TradeVenue
impl Copy for TradeVenue
Auto Trait Implementations§
impl Freeze for TradeVenue
impl RefUnwindSafe for TradeVenue
impl Send for TradeVenue
impl Sync for TradeVenue
impl Unpin for TradeVenue
impl UnsafeUnpin for TradeVenue
impl UnwindSafe for TradeVenue
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