amount_a_in
and amount_b_in
of tokens must be approved. Initial liquidity should be non-zero. All the storage parameters are reset to default values. The sender receives shares equal to a minimum of amount_a_in
and amount_b_in
. Tokens types must be provided in ascending order.a_to_b
type is used to exchange token_a
to token_b
. b_to_a
performs the opposite swap from token_b_address
to token_a_address
. The token_a
and token_b
are the corresponding tokens of pair_id
pool. The amount_in
of the token will be charged from the user. If the received amount is smaller than min_amount_out
then the transaction is reverted. Tokens types must be provided in ascending order. Deadlines should be in the future.pair_id
of the pool and swap_type
to be executed; all the exchanges should be sequential.token_a_in
and token_b_in
must be approved. Initial liquidity should be non-zero. The sender spends token_a_in
and token_b_in
at most otherwise, the transaction fails. Tokens types must be provided in ascending order. Deadlines should be in the future.shares
and sends tokens to the owner; operation is reverted if the amount of appropriate divested tokens is smaller than min_token_a_out
or min_token_b_out
. Tokens types must be provided in ascending order. Deadlines should be in the future.