PoolAddress
Functions
getPoolKey
Returns PoolKey: the ordered tokens with the matched fee levels
Parameters:
Name
Type
Description
tokenA
address
The first token of a pool, unsorted
tokenB
address
The second token of a pool, unsorted
fee
uint24
The fee level of the pool
Return Values:
Name
Type
Description
Poolkey
PoolAddress.PoolKey
The pool details with ordered token0 and token1 assignments
computeAddress
Deterministically computes the pool address given the factory and PoolKey
Parameters:
Name
Type
Description
factory
address
The Bonsaiswap V3 factory contract address
key
struct PoolAddress.PoolKey
The PoolKey
Return Values:
Name
Type
Description
pool
address
The contract address of the V3 pool
Last updated