buy
Arguments
pub struct BuyArgs {
/// Quote tokens to spend (exact-in) or max-in (exact-out) β in quote mintβs base units
pub quote_amount: u64,
/// Minimum base tokens to receive (exact-in) or exact base out (exact-out)
pub base_out: u64,
/// true => exact-in, false => exact-out
pub is_exact_in: bool,
}Required Accounts
#
Name
Writable
Seeds / Constraints
Behavior (high level)
Last updated