Pair Addresses
get_pair
The best way to get the address for a pair is to call get_pair on the Factory. If the pair exists, this function will return its address else 0
The "canonical" way to determine whether or not a pair exists.
Requires an on-chain lookup.
Off-Chain
Python Example:
token0 must be strictly less than token1 by sort order.
Can be computed offline.
Requires the ability to perform pedersen_hash.
Last updated