PoolFactoryDeployer
Inherits: IPoolFactoryDeployer, ReentrancyGuard
State Variables
DIAMOND
address public immutable DIAMOND;
POOL_FACTORY
address public immutable POOL_FACTORY;
Functions
constructor
constructor(address diamond, address poolFactory);
deployPool
Deploy a new option pool
function deployPool(IPoolFactory.PoolKey calldata k) external nonReentrant returns (address poolAddress);
Parameters
Name | Type | Description |
---|---|---|
k | IPoolFactory.PoolKey | The pool key |
Returns
Name | Type | Description |
---|---|---|
poolAddress | address | The address of the deployed pool |
calculatePoolAddress
Calculate the deterministic address deployment of a pool
function calculatePoolAddress(IPoolFactory.PoolKey calldata k) external view returns (address);
_encodePoolProxyArgs
Returns the encoded arguments for the pool proxy using pool key k
function _encodePoolProxyArgs(IPoolFactory.PoolKey calldata k) internal view returns (bytes memory);
_revertIfNotPoolFactory
function _revertIfNotPoolFactory(address caller) internal view;