State-Changing Functions
swapExactTokensForTokens
Copy function swapExactTokensForTokens (
uint256 amountIn ,
uint256 amountOutMin ,
struct SwapParams calldata p
) external returns ( uint256 [] memory amounts)
Swaps an exact amount of input tokens for as many output tokens as possible, along the route determined by the path.
Parameters:
Return Values:
swapTokensForExactTokens
Copy function swapTokensForExactTokens (
uint256 amountOut ,
uint256 amountInMax ,
struct SwapParams calldata p
) external returns ( uint256 [] memory amounts)
Receive an exact amount of output tokens for as few input tokens as possible, along the route determined by the path.
Parameters:
Return Values:
swapExactETHForTokens
Copy function swapExactETHForTokens (
uint256 amountOutMin ,
struct SwapParams calldata p
) external payable returns ( uint256 [] memory amounts)
Swaps an exact amount of ETH for as many output tokens as possible, along the route determined by the path
Parameters:
Return Values:
swapTokensForExactETH
Copy function swapTokensForExactETH (
uint256 amountOut ,
uint256 amountInMax ,
struct SwapParams calldata p
) external returns ( uint256 [] memory amounts)
Receive an exact amount of ETH for as few input tokens as possible, along the route determined by the path.
Parameters:
Return Values:
swapExactTokensForETH
Copy function swapExactTokensForETH (
uint256 amountIn ,
uint256 amountOutMin ,
struct SwapParams calldata p
) external returns ( uint256 [] memory amounts)
Swaps an exact amount of tokens for as much ETH as possible, along the route determined by the path.
Parameters:
Return Values:
swapETHForExactTokens
Copy function swapETHForExactTokens (
uint256 amountOut ,
struct SwapParams calldata p
) external payable returns ( uint256 [] memory amounts)
Swaps an exact amount of tokens for as much ETH as possible, along the route determined by the path.
Parameters:
Return Values: