Factory
Contract Information
Contract name: LitedexFactory Contract address: 0x716d94d0b70f5a50133a61c12d37309dad93bab4
View the Litedex: Factory Contract on Bscscan.
Read functions
getPair
function getPair(address tokenA, address tokenB) external view returns (address pair);Address for tokenA and address for tokenB return address of pair contract (where one exists).
tokenA and tokenB order is interchangeable.
Returns 0x0000000000000000000000000000000000000000 as address where no pair exists.
allPairs
function allPairs(uint) external view returns (address pair);Returns the address of the nth pair (0-indexed) created through the Factory contract.
Returns 0x0000000000000000000000000000000000000000 where pair has not yet been created.
Begins at 0 for first created pair.
allPairsLength
Displays the current number of pairs created through the Factory contract as an integer.
feeTo
The address to where non-LP-holder fees are sent.
feeToSetter
The address with permission to set the feeTo address.
Write functions
createPair
Creates a pair for tokenA and tokenB where a pair doesn't already exist.
tokenA and tokenB order is interchangeable.
Emits PairCreated (see Events).
setFeeTo
Sets address for feeTo.
setFeeToSetter
Sets address for permission to adjust feeTo.
Events
PairCreated
Emitted whenever a createPair creates a new pair.
token0 will appear before token1 in sort order.
The final uint log value will be 1 for the first pair created, 2 for the second, etc.
Interface
Last updated
Was this helpful?