IOpenMevRouter
Methods
WETH09
Solidity
function WETH() external pure returns (address)
Returns
| Name | Type | Description |
|---|---|---|
| _0 | address | undefined |
addLiquidity
Solidity
function addLiquidity(address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) external nonpayable returns (uint256 amountA, uint256 amountB, uint256 liquidity)
Parameters
| Name | Type | Description |
|---|---|---|
| tokenA | address | undefined |
| tokenB | address | undefined |
| amountADesired | uint256 | undefined |
| amountBDesired | uint256 | undefined |
| amountAMin | uint256 | undefined |
| amountBMin | uint256 | undefined |
| to | address | undefined |
| deadline | uint256 | undefined |
Returns
| Name | Type | Description |
|---|---|---|
| amountA | uint256 | undefined |
| amountB | uint256 | undefined |
| liquidity | uint256 | undefined |
addLiquidityETH
Solidity
function addLiquidityETH(address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) external payable returns (uint256 amountToken, uint256 amountETH, uint256 liquidity)
Parameters
| Name | Type | Description |
|---|---|---|
| token | address | undefined |
| amountTokenDesired | uint256 | undefined |
| amountTokenMin | uint256 | undefined |
| amountETHMin | uint256 | undefined |
| to | address | undefined |
| deadline | uint256 | undefined |
Returns
| Name | Type | Description |
|---|---|---|
| amountToken | uint256 | undefined |
| amountETH | uint256 | undefined |
| liquidity | uint256 | undefined |
factory
Solidity
function factory() external pure returns (address)
Returns
| Name | Type | Description |
|---|---|---|
| _0 | address | undefined |
getAmountIn
Solidity
function getAmountIn(uint256 amountOut, uint256 reserveIn, uint256 reserveOut) external pure returns (uint256 amountIn)
Parameters
| Name | Type | Description |
|---|---|---|
| amountOut | uint256 | undefined |
| reserveIn | uint256 | undefined |
| reserveOut | uint256 | undefined |
Returns
| Name | Type | Description |
|---|---|---|
| amountIn | uint256 | undefined |
getAmountOut
Solidity
function getAmountOut(uint256 amountIn, uint256 reserveIn, uint256 reserveOut) external pure returns (uint256 amountOut)
Parameters
| Name | Type | Description |
|---|---|---|
| amountIn | uint256 | undefined |
| reserveIn | uint256 | undefined |
| reserveOut | uint256 | undefined |
Returns
| Name | Type | Description |
|---|---|---|
| amountOut | uint256 | undefined |
getAmountsIn
Solidity
function getAmountsIn(uint256 amountOut, address[] path) external view returns (uint256[] amounts)
Parameters
| Name | Type | Description |
|---|---|---|
| amountOut | uint256 | undefined |
| path | address[] | undefined |
Returns
| Name | Type | Description |
|---|---|---|
| amounts | uint256[] | undefined |
getAmountsOut
Solidity
function getAmountsOut(uint256 amountIn, address[] path) external view returns (uint256[] amounts)
Parameters
| Name | Type | Description |
|---|---|---|
| amountIn | uint256 | undefined |
| path | address[] | undefined |
Returns
| Name | Type | Description |
|---|---|---|
| amounts | uint256[] | undefined |
harvest
Solidity
function harvest(uint256 percentage, address[] tokens, address[] receivers) external payable
Parameters
| Name | Type | Description |
|---|---|---|
| percentage | uint256 | undefined |
| tokens | address[] | undefined |
| receivers | address[] | undefined |
quote
Solidity
function quote(uint256 amountA, uint256 reserveA, uint256 reserveB) external pure returns (uint256 amountB)
Parameters
| Name | Type | Description |
|---|---|---|
| amountA | uint256 | undefined |
| reserveA | uint256 | undefined |
| reserveB | uint256 | undefined |
Returns
| Name | Type | Description |
|---|---|---|
| amountB | uint256 | undefined |
removeLiquidity
Solidity
function removeLiquidity(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) external nonpayable returns (uint256 amountA, uint256 amountB)
Parameters
| Name | Type | Description |
|---|---|---|
| tokenA | address | undefined |
| tokenB | address | undefined |
| liquidity | uint256 | undefined |
| amountAMin | uint256 | undefined |
| amountBMin | uint256 | undefined |
| to | address | undefined |
| deadline | uint256 | undefined |
Returns
| Name | Type | Description |
|---|---|---|
| amountA | uint256 | undefined |
| amountB | uint256 | undefined |
removeLiquidityETH
Solidity
function removeLiquidityETH(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) external nonpayable returns (uint256 amountToken, uint256 amountETH)
Parameters
| Name | Type | Description |
|---|---|---|
| token | address | undefined |
| liquidity | uint256 | undefined |
| amountTokenMin | uint256 | undefined |
| amountETHMin | uint256 | undefined |
| to | address | undefined |
| deadline | uint256 | undefined |
Returns
| Name | Type | Description |
|---|---|---|
| amountToken | uint256 | undefined |
| amountETH | uint256 | undefined |
removeLiquidityETHSupportingFeeOnTransferTokens
Solidity
function removeLiquidityETHSupportingFeeOnTransferTokens(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) external nonpayable returns (uint256 amountETH)
Parameters
| Name | Type | Description |
|---|---|---|
| token | address | undefined |
| liquidity | uint256 | undefined |
| amountTokenMin | uint256 | undefined |
| amountETHMin | uint256 | undefined |
| to | address | undefined |
| deadline | uint256 | undefined |
Returns
| Name | Type | Description |
|---|---|---|
| amountETH | uint256 | undefined |
removeLiquidityETHWithPermit
Solidity
function removeLiquidityETHWithPermit(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) external nonpayable returns (uint256 amountToken, uint256 amountETH)
Parameters
| Name | Type | Description |
|---|---|---|
| token | address | undefined |
| liquidity | uint256 | undefined |
| amountTokenMin | uint256 | undefined |
| amountETHMin | uint256 | undefined |
| to | address | undefined |
| deadline | uint256 | undefined |
| approveMax | bool | undefined |
| v | uint8 | undefined |
| r | bytes32 | undefined |
| s | bytes32 | undefined |
Returns
| Name | Type | Description |
|---|---|---|
| amountToken | uint256 | undefined |
| amountETH | uint256 | undefined |
removeLiquidityETHWithPermitSupportingFeeOnTransferTokens
Solidity
function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) external nonpayable returns (uint256 amountETH)
Parameters
| Name | Type | Description |
|---|---|---|
| token | address | undefined |
| liquidity | uint256 | undefined |
| amountTokenMin | uint256 | undefined |
| amountETHMin | uint256 | undefined |
| to | address | undefined |
| deadline | uint256 | undefined |
| approveMax | bool | undefined |
| v | uint8 | undefined |
| r | bytes32 | undefined |
| s | bytes32 | undefined |
Returns
| Name | Type | Description |
|---|---|---|
| amountETH | uint256 | undefined |
removeLiquidityWithPermit
Solidity
function removeLiquidityWithPermit(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) external nonpayable returns (uint256 amountA, uint256 amountB)
Parameters
| Name | Type | Description |
|---|---|---|
| tokenA | address | undefined |
| tokenB | address | undefined |
| liquidity | uint256 | undefined |
| amountAMin | uint256 | undefined |
| amountBMin | uint256 | undefined |
| to | address | undefined |
| deadline | uint256 | undefined |
| approveMax | bool | undefined |
| v | uint8 | undefined |
| r | bytes32 | undefined |
| s | bytes32 | undefined |
Returns
| Name | Type | Description |
|---|---|---|
| amountA | uint256 | undefined |
| amountB | uint256 | undefined |
swapETHForExactTokens
Solidity
function swapETHForExactTokens(uint256 amountOut, address[] path, address to, uint256 deadline) external payable returns (uint256[] amounts)
Parameters
| Name | Type | Description |
|---|---|---|
| amountOut | uint256 | undefined |
| path | address[] | undefined |
| to | address | undefined |
| deadline | uint256 | undefined |
Returns
| Name | Type | Description |
|---|---|---|
| amounts | uint256[] | undefined |
swapExactETHForTokens
Solidity
function swapExactETHForTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) external payable returns (uint256[] amounts)
Parameters
| Name | Type | Description |
|---|---|---|
| amountOutMin | uint256 | undefined |
| path | address[] | undefined |
| to | address | undefined |
| deadline | uint256 | undefined |
Returns
| Name | Type | Description |
|---|---|---|
| amounts | uint256[] | undefined |
swapExactETHForTokensSupportingFeeOnTransferTokens
Solidity
function swapExactETHForTokensSupportingFeeOnTransferTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) external payable
Parameters
| Name | Type | Description |
|---|---|---|
| amountOutMin | uint256 | undefined |
| path | address[] | undefined |
| to | address | undefined |
| deadline | uint256 | undefined |
swapExactTokensForETH
Solidity
function swapExactTokensForETH(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) external nonpayable returns (uint256[] amounts)
Parameters
| Name | Type | Description |
|---|---|---|
| amountIn | uint256 | undefined |
| amountOutMin | uint256 | undefined |
| path | address[] | undefined |
| to | address | undefined |
| deadline | uint256 | undefined |
Returns
| Name | Type | Description |
|---|---|---|
| amounts | uint256[] | undefined |
swapExactTokensForETHSupportingFeeOnTransferTokens
Solidity
function swapExactTokensForETHSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) external nonpayable
Parameters
| Name | Type | Description |
|---|---|---|
| amountIn | uint256 | undefined |
| amountOutMin | uint256 | undefined |
| path | address[] | undefined |
| to | address | undefined |
| deadline | uint256 | undefined |
swapExactTokensForTokens
Solidity
function swapExactTokensForTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) external nonpayable returns (uint256[] amounts)
Parameters
| Name | Type | Description |
|---|---|---|
| amountIn | uint256 | undefined |
| amountOutMin | uint256 | undefined |
| path | address[] | undefined |
| to | address | undefined |
| deadline | uint256 | undefined |
Returns
| Name | Type | Description |
|---|---|---|
| amounts | uint256[] | undefined |
swapExactTokensForTokensSupportingFeeOnTransferTokens
Solidity
function swapExactTokensForTokensSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) external nonpayable
Parameters
| Name | Type | Description |
|---|---|---|
| amountIn | uint256 | undefined |
| amountOutMin | uint256 | undefined |
| path | address[] | undefined |
| to | address | undefined |
| deadline | uint256 | undefined |
swapTokensForExactETH
Solidity
function swapTokensForExactETH(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) external nonpayable returns (uint256[] amounts)
Parameters
| Name | Type | Description |
|---|---|---|
| amountOut | uint256 | undefined |
| amountInMax | uint256 | undefined |
| path | address[] | undefined |
| to | address | undefined |
| deadline | uint256 | undefined |
Returns
| Name | Type | Description |
|---|---|---|
| amounts | uint256[] | undefined |
swapTokensForExactTokens
Solidity
function swapTokensForExactTokens(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) external nonpayable returns (uint256[] amounts)
Parameters
| Name | Type | Description |
|---|---|---|
| amountOut | uint256 | undefined |
| amountInMax | uint256 | undefined |
| path | address[] | undefined |
| to | address | undefined |
| deadline | uint256 | undefined |
Returns
| Name | Type | Description |
|---|---|---|
| amounts | uint256[] | undefined |