add "to" parameter to relevant functions

This commit is contained in:
Noah Zinsmeister
2019-12-30 17:54:02 -05:00
parent 623353e9ad
commit b8655fee9f
6 changed files with 59 additions and 52 deletions

View File

@ -2,8 +2,8 @@ pragma solidity 0.5.15;
interface IUniswapV2 {
event Mint(address indexed sender, uint amount0, uint amount1);
event Burn(address indexed sender, uint amount0, uint amount1);
event Swap(address indexed sender, address indexed tokenIn, uint amountIn, uint amountOut);
event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
event Swap(address indexed sender, address indexed tokenIn, uint amountIn, uint amountOut, address indexed to);
event Sync(uint112 reserve0, uint112 reserve1);
function factory() external view returns (address);
@ -15,10 +15,10 @@ interface IUniswapV2 {
function price0CumulativeLast() external view returns (uint);
function price1CumulativeLast() external view returns (uint);
function mint() external returns (uint liquidity);
function burn() external returns (uint amount0, uint amount1);
function swap(address tokenIn, uint amountOut) external;
function skim() external;
function mint(address to) external returns (uint liquidity);
function burn(address to) external returns (uint amount0, uint amount1);
function swap(address tokenIn, uint amountOut, address to) external;
function skim(address to) external;
function sync() external;
function initialize(address, address) external; // only called once by the factory on deploy