sell
Arguments
#[derive(AnchorSerialize, AnchorDeserialize)]
pub struct SellArgs {
/// Base tokens to sell (exact-in) or max-in (exact-out)
pub base_amount: u64,
/// Minimum quote tokens to receive (exact-in) or exact quote out (exact-out)
pub quote_out: u64,
/// true => exact-in, false => exact-out
pub is_exact_in: bool,
}Required Accounts
#
Name
Writable
Seeds / Constraints
Behavior (high level)
Last updated