add some comments

preface all errors with "UniswapV2: ..."

tweak the order of a few things

use abi.encodeWithSelector instead of abi.encodeWithSignature
This commit is contained in:
Noah Zinsmeister
2020-01-22 15:39:43 -05:00
parent 585ee2ef82
commit 85d6435ea2
4 changed files with 43 additions and 38 deletions

View File

@ -6,6 +6,7 @@ interface IUniswapV2Exchange {
event Swap(address indexed sender, address indexed tokenIn, uint amountIn, uint amountOut, address indexed to);
event Sync(uint112 reserve0, uint112 reserve1);
function selector() external view returns (bytes4);
function factory() external view returns (address);
function token0() external view returns (address);
function token1() external view returns (address);