IUniswapV2Pair

Overview

License: MIT

interface IUniswapV2Pair

Events info

Approval

event Approval(address indexed owner, address indexed spender, uint256 value)

Transfer

event Transfer(address indexed from, address indexed to, uint256 value)

Mint

event Mint(address indexed sender, uint256 amount0, uint256 amount1)

Burn

event Burn(address indexed sender, uint256 amount0, uint256 amount1, address indexed to)

Swap

event Swap(address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to)

Sync

event Sync(uint112 reserve0, uint112 reserve1)

Functions info

name (0x06fdde03)

function name() external pure returns (string memory)

symbol (0x95d89b41)

function symbol() external pure returns (string memory)

decimals (0x313ce567)

function decimals() external pure returns (uint8)

totalSupply (0x18160ddd)

function totalSupply() external view returns (uint256)

balanceOf (0x70a08231)

function balanceOf(address owner) external view returns (uint256)

allowance (0xdd62ed3e)

function allowance(
    address owner,
    address spender
) external view returns (uint256)

approve (0x095ea7b3)

function approve(address spender, uint256 value) external returns (bool)

transfer (0xa9059cbb)

function transfer(address to, uint256 value) external returns (bool)

transferFrom (0x23b872dd)

function transferFrom(
    address from,
    address to,
    uint256 value
) external returns (bool)

DOMAIN_SEPARATOR (0x3644e515)

function DOMAIN_SEPARATOR() external view returns (bytes32)

PERMIT_TYPEHASH (0x30adf81f)

function PERMIT_TYPEHASH() external pure returns (bytes32)

nonces (0x7ecebe00)

function nonces(address owner) external view returns (uint256)

permit (0xd505accf)

function permit(
    address owner,
    address spender,
    uint256 value,
    uint256 deadline,
    uint8 v,
    bytes32 r,
    bytes32 s
) external

MINIMUM_LIQUIDITY (0xba9a7a56)

function MINIMUM_LIQUIDITY() external pure returns (uint256)

factory (0xc45a0155)

function factory() external view returns (address)

token0 (0x0dfe1681)

function token0() external view returns (address)

token1 (0xd21220a7)

function token1() external view returns (address)

getReserves (0x0902f1ac)

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

price0CumulativeLast (0x5909c0d5)

function price0CumulativeLast() external view returns (uint256)

price1CumulativeLast (0x5a3d5493)

function price1CumulativeLast() external view returns (uint256)

kLast (0x7464fc3d)

function kLast() external view returns (uint256)

mint (0x6a627842)

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

burn (0x89afcb44)

function burn(address to) external returns (uint256 amount0, uint256 amount1)

swap (0x022c0d9f)

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

skim (0xbc25cf77)

function skim(address to) external

sync (0xfff6cae9)

function sync() external

initialize (0x485cc955)

function initialize(address, address) external

Last updated