IUniswapV2Pair
Inherits: IUniswapV2ERC20
Functions
token0
function token0() external view returns (address);
Returns
| Name | Type | Description |
|---|---|---|
| <none> | address |
token1
function token1() external view returns (address);
Returns
| Name | Type | Description |
|---|---|---|
| <none> | address |
swap
function swap(uint256 amount0Out, uint256 amount1Out, address to, bytes calldata data) external;
Parameters
| Name | Type | Description |
|---|---|---|
| amount0Out | uint256 | |
| amount1Out | uint256 | |
| to | address | |
| data | bytes |
getReserves
function getReserves()
external
view
returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
Returns
| Name | Type | Description |
|---|---|---|
| reserve0 | uint112 | |
| reserve1 | uint112 | |
| blockTimestampLast | uint32 |
mint
function mint(address to) external returns (uint256 liquidity);
Parameters
| Name | Type | Description |
|---|---|---|
| to | address |
Returns
| Name | Type | Description |
|---|---|---|
| liquidity | uint256 |
sync
function sync() external;