UniswapV3Swapper
Write Methods
swapOut
solidity
function swapOut(
address tokenIn,
address tokenOut,
uint256 amountOut,
bytes calldata swapperData
) external
Swaps the passed amount of tokenOut from tokenIn.
Parameters
Name | Type | Description |
---|---|---|
tokenIn | address | The address of the token to be swapped from |
tokenOut | uint256 | The address of the token to be swapped to |
amountOut | uint256 | The amount of tokenOut to be swapped |
swapperData | bytes | Additional data required for the swap |