Skip to main content

ConstantProductPoolFactory

This contract is for deploying Trident Constant Product Pools with configurations.

The full contract can be found here.

Functions

getDeployData

function getDeployData() external view override returns (bytes memory, IMasterDeployer)

Called in the constructor to populate deploy data.

calculatePoolAddress

function calculatePoolAddress(
address token0,
address token1,
uint256 swapFee,
bool twapSupport
) external view returns (address)

Calculates a pool's address and returns it.

Parameters

NameTypeDescription
token0addressaddress of token0
token1addressaddress of token1
swapFeeuint256swap fee
twapSupportboolboolean for is pool using TWAP or not