2020-10-27 12:18:30 +00:00
|
|
|
// SPDX-License-Identifier: agpl-3.0
|
2020-11-25 14:07:33 +00:00
|
|
|
pragma solidity 0.6.12;
|
2020-10-27 12:18:30 +00:00
|
|
|
|
|
|
|
interface IUniswapV2Router02 {
|
|
|
|
function swapExactTokensForTokens(
|
|
|
|
uint256 amountIn,
|
|
|
|
uint256 amountOutMin,
|
|
|
|
address[] calldata path,
|
|
|
|
address to,
|
|
|
|
uint256 deadline
|
|
|
|
) external returns (uint256[] memory amounts);
|
|
|
|
|
|
|
|
function swapTokensForExactTokens(
|
2021-01-27 14:43:34 +00:00
|
|
|
uint256 amountOut,
|
|
|
|
uint256 amountInMax,
|
2020-10-27 12:18:30 +00:00
|
|
|
address[] calldata path,
|
|
|
|
address to,
|
2021-01-27 14:43:34 +00:00
|
|
|
uint256 deadline
|
2020-10-27 12:18:30 +00:00
|
|
|
) external returns (uint256[] memory amounts);
|
2020-10-27 19:32:09 +00:00
|
|
|
|
2021-01-27 14:43:34 +00:00
|
|
|
function getAmountsOut(uint256 amountIn, address[] calldata path)
|
|
|
|
external
|
|
|
|
view
|
|
|
|
returns (uint256[] memory amounts);
|
2020-10-27 19:32:09 +00:00
|
|
|
|
2021-01-27 14:43:34 +00:00
|
|
|
function getAmountsIn(uint256 amountOut, address[] calldata path)
|
|
|
|
external
|
|
|
|
view
|
|
|
|
returns (uint256[] memory amounts);
|
2020-10-27 12:18:30 +00:00
|
|
|
}
|