swap
Swap
Call parameters
type token_id_t is nat
type swap_direction_t is
| A_to_b
| B_to_a
type swap_slice_t is [@layout:comb] record [
direction : swap_direction_t;
pair_id : token_id_t;
]
type swap_t is [@layout:comb] record [
lambda : option(unit -> list(operation));
swaps : list(swap_slice_t);
deadline : timestamp;
receiver : address;
referrer : address;
amount_in : nat;
min_amount_out : nat;
]swap_slice_t
Field
Type
Description
get_swap_min_res_t
Field
Type
Description
Usage
Errors
Flash swap
Call parameters
swap_slice_t
Field
Type
Description
get_swap_min_res_t
Field
Type
Description
Usage
Lambda function example
Errors
Last updated