PoolInitializer
Functions
createAndInitializePoolIfNecessary
Creates a new pool if it does not exist, then initializes if not initialized
This method can be bundled with others via IMulticall for the first action (e.g. mint) performed against a pool
Parameters:
Name | Type | Description |
---|---|---|
| address | The contract address of token0 of the pool |
| address | The contract address of token1 of the pool |
| uint24 | The fee amount of the DragonswapV2 pool for the specified token pair |
| uint160 | The initial square root price of the pool as a Q64.96 value |
Return Values:
Name | Type | Description |
---|---|---|
| address | Returns the pool address based on the pair of tokens and fee, will return the newly created pool address if necessary |
Last updated