Swap
Swap functions use the liquidity available to trade one token with another
first_token will always be MID token and second_token indicate what liquidity to use.
Payment token can be first or second token.
opt_min_out (slippage) : is an optionnal value where user can indicate the minimum amount of token he want to receive. We will use this to set the slippage tolerance
first token and second token must be in the "swaped_tokens" list
Last updated