Skip to main content

IPair

Methods

allowance

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

Parameters

NameTypeDescription
owneraddressundefined
spenderaddressundefined

Returns

NameTypeDescription
_0uint256undefined

approve

function approve(address spender, uint256 amount) external nonpayable returns (bool)

Parameters

NameTypeDescription
spenderaddressundefined
amountuint256undefined

Returns

NameTypeDescription
_0boolundefined

balanceOf

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

Parameters

NameTypeDescription
accountaddressundefined

Returns

NameTypeDescription
_0uint256undefined

getReserves

function getReserves() external view returns (uint112, uint112, uint32)

Returns

NameTypeDescription
_0uint112undefined
_1uint112undefined
_2uint32undefined

owner

function owner() external view returns (address)

Returns

NameTypeDescription
_0addressundefined

token0

function token0() external view returns (contract IERC20)

Returns

NameTypeDescription
_0contract IERC20undefined

token1

function token1() external view returns (contract IERC20)

Returns

NameTypeDescription
_0contract IERC20undefined

totalSupply

function totalSupply() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

Events

Approval

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

Parameters

NameTypeDescription
owner indexedaddressundefined
spender indexedaddressundefined
valueuint256undefined

Transfer

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

Parameters

NameTypeDescription
from indexedaddressundefined
to indexedaddressundefined
valueuint256undefined