Skip to main content

IUniswapV2Pair

Git Source

Inherits: IUniswapV2ERC20

Functions

token0

function token0() external view returns (address);

token1

function token1() external view returns (address);

swap

function swap(uint256 amount0Out, uint256 amount1Out, address to, bytes calldata data) external;

getReserves

function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);

mint

function mint(address to) external returns (uint256 liquidity);

sync

function sync() external;