MockPair
MockPair
token0
token1
MINIMUM_LIQUIDITY
Mint
initialize
initialize is used to initialize the token address and shared decimals.
Parameters
Name
Type
Description
_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
constructor
lock
getReserves
Returns the getReserves of the token.
Return Values
Name
Type
Description
_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
mint is used to mint MockPair tokens.
Parameters
Name
Type
Description
_to
address
The address to mint the MockPair tokens to.
Return Values
Name
Type
Description
_liquidity
uint256
The amount of MockPair tokens minted.