swapTokensForExactETH
Last updated
Last updated
_to
The address of the recipient.
_token0
An ERC20 token address.
_amountOut
The amount of ether that one wants to receive.
_amountInMax
The maximal amount of _token0
that the user is willing to trade for a given amount of _amount1Out
.
_deadline
The UTC timestamp that if reached, causes the swap transaction to fail automatically.
uint _val
The amount of _token0
.