Function create_swap

Source
pub fn create_swap<'a, 'b, 'c, 'info>(
    ctx: CpiContext<'a, 'b, 'c, 'info, CreateSwap<'info>>,
    nonce: [u8; 32],
    swap_path_length: u8,
    swap_in_amount: u64,
    min_swap_out_amount: Option<u64>,
) -> Result<()>