MockPair

MockPair

token0

address token0

token1

address token1

MINIMUM_LIQUIDITY

uint256 MINIMUM_LIQUIDITY

Mint

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

initialize

function initialize(address _token0, address _token1) external

initialize is used to initialize the token address and shared decimals.

Parameters

NameTypeDescription

_token0

address

The address of the token that the pool is for.

_token1

address

The number of decimals that the token and OmniTokens share.

factory

address factory

constructor

constructor() public

lock

modifier lock()

getReserves

function getReserves() public view returns (uint112 _reserve0, uint112 _reserve1, uint32 _blockTimestampLast)

Returns the getReserves of the token.

Return Values

NameTypeDescription

_reserve0

uint112

The reserve of token0 in the pair.

_reserve1

uint112

The reserve of token1 in the pair.

_blockTimestampLast

uint32

The block timestamp last.

mint

function mint(address _to) external returns (uint256 _liquidity)

mint is used to mint MockPair tokens.

Parameters

NameTypeDescription

_to

address

The address to mint the MockPair tokens to.

Return Values

NameTypeDescription

_liquidity

uint256

The amount of MockPair tokens minted.