IUniswapV3Router
IUniswapV3Router
ExactInputParams
struct ExactInputParams {
bytes path;
address recipient;
uint256 deadline;
uint256 amountIn;
uint256 amountOutMinimum;
}
exactInput
function exactInput(struct IUniswapV3Router.ExactInputParams params) external payable returns (uint256 amountOut)
Swaps amountIn
of one token for as much as possible of another along the specified path
Parameters
Name | Type | Description |
---|---|---|
params | struct IUniswapV3Router.ExactInputParams | The parameters necessary for the multi-hop swap, encoded as ExactInputParams in calldata |
Return Values
Name | Type | Description |
---|---|---|
amountOut | uint256 | The amount of the received token |