Skip to main content

IPair

Methods

balanceOf

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

Parameters

NameTypeDescription
owneraddressundefined

Returns

NameTypeDescription
_0uint256undefined

getReserves

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

Returns

NameTypeDescription
reserve0uint112undefined
reserve1uint112undefined
blockTimestampLastuint32undefined

swap

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

Parameters

NameTypeDescription
amount0Outuint256undefined
amount1Outuint256undefined
toaddressundefined
databytesundefined

token0

function token0() external view returns (address)

Returns

NameTypeDescription
_0addressundefined

token1

function token1() external view returns (address)

Returns

NameTypeDescription
_0addressundefined

totalSupply

function totalSupply() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined