UniswapV3Adapter

UniswapV3Adapter

constructor

constructor(struct PoolInput[] pools) public

swapExactInput

function swapExactInput(address recipient, address tokenIn, address tokenOut, uint256 amountIn, uint256 minAmountOut, bytes data) external returns (uint256 amountOut)

swap with exact input

Parameters

swapExactOutput

function swapExactOutput(address recipient, address tokenIn, address tokenOut, uint256 maxAmountIn, uint256 amountOut, bytes data) external returns (uint256 amountIn)

swap with exact output

Parameters

uniswapV3SwapCallback

function uniswapV3SwapCallback(int256 amount0Delta, int256 amount1Delta, bytes data) external

Last updated