PoolAddress
Functions
getPoolKey
Returns PoolKey: the ordered tokens with the matched fee levels
Parameters:
Name | Type | Description |
---|---|---|
| address | The first token of a pool, unsorted |
| address | The second token of a pool, unsorted |
| uint24 | The fee level of the pool |
Return Values:
Name | Type | Description |
---|---|---|
| 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 |
---|---|---|
| address | The DragonswapV2 factory contract address |
| struct PoolAddress.PoolKey | The PoolKey |
Return Values:
Name | Type | Description |
---|---|---|
| address | The contract address of the V2 pool |
Last updated