Router token swapping functionality Functions for swapping tokens via Algebra
exactInputSingle(struct ISwapRouter.ExactInputSingleParams) payable external
exactInputSingle(struct ISwapRouter.ExactInputSingleParams)
Swaps `amountIn` of one token for as much as possible of another token
params
struct ISwapRouter.ExactInputSingleParams
The parameters necessary for the swap, encoded as `ExactInputSingleParams` in calldata
Returns:
amountOut
uint256
exactInput(struct ISwapRouter.ExactInputParams) payable external
exactInput(struct ISwapRouter.ExactInputParams)
Swaps `amountIn` of one token for as much as possible of another along the specified path
struct ISwapRouter.ExactInputParams
The parameters necessary for the multi-hop swap, encoded as `ExactInputParams` in calldata
exactOutputSingle(struct ISwapRouter.ExactOutputSingleParams) payable external
exactOutputSingle(struct ISwapRouter.ExactOutputSingleParams)
Swaps as little as possible of one token for `amountOut` of another token
struct ISwapRouter.ExactOutputSingleParams
The parameters necessary for the swap, encoded as `ExactOutputSingleParams` in calldata
amountIn
exactOutput(struct ISwapRouter.ExactOutputParams) payable external
exactOutput(struct ISwapRouter.ExactOutputParams)
Swaps as little as possible of one token for `amountOut` of another along the specified path (reversed)
struct ISwapRouter.ExactOutputParams
The parameters necessary for the multi-hop swap, encoded as `ExactOutputParams` in calldata
exactInputSingleSupportingFeeOnTransferTokens(struct ISwapRouter.ExactInputSingleParams) external
exactInputSingleSupportingFeeOnTransferTokens(struct ISwapRouter.ExactInputSingleParams)