pub struct BuyArgs {
pub amm: AmmInput,
pub quote_fee: Option<MintFee>,
pub base_fee: Option<MintFee>,
pub base_reserve_cap: Option<u64>,
}Expand description
amm.amount is the user’s amount: the quote that the user sends for
buy_exact_in_with_fees, the base that the user receives for
buy_exact_out_with_fees.
Fields§
§amm: AmmInput§quote_fee: Option<MintFee>§base_fee: Option<MintFee>§base_reserve_cap: Option<u64>Launchpad: bonding_curve.real_base_reserves. None for a DEX pool.
Trait Implementations§
impl Copy for BuyArgs
impl Eq for BuyArgs
impl StructuralPartialEq for BuyArgs
Auto Trait Implementations§
impl Freeze for BuyArgs
impl RefUnwindSafe for BuyArgs
impl Send for BuyArgs
impl Sync for BuyArgs
impl Unpin for BuyArgs
impl UnsafeUnpin for BuyArgs
impl UnwindSafe for BuyArgs
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