Factory
Last updated
Last updated
DoveSwapFactory
is deployed at 0xeA2709fCD78141976803C3aecA23eCEa3Cb9cb41
on the Polygon zkEVM Mainnet
Emitted each time a pair is created via .
token0
is guaranteed to be strictly less than token1
by sort order.
The final uint
log value will be 1
for the first pair created, 2
for the second, etc. (see /).
Returns the address of the pair for tokenA
and tokenB
, if it has been created, else address(0)
(0x0000000000000000000000000000000000000000
).
tokenA
and tokenB
are interchangeable.
Pair addresses can also be calculated deterministically via the SDK.
Returns the address of the n
th pair (0
-indexed) created through the factory, or address(0)
(0x0000000000000000000000000000000000000000
) if not enough pairs have been created yet.
Pass 0
for the address of the first pair created, 1
for the second, etc.
Returns the total number of pairs created through the factory so far.
Creates a pair for tokenA
and tokenB
if one doesn't exist already.
tokenA
and tokenB
are interchangeable.
See .
The address allowed to change .
Emits .