OptionPSFactory
Inherits: IOptionPSFactory, ProxyManager, ReentrancyGuard
Functions
isProxyDeployed
Return whether proxy is a deployed proxy
function isProxyDeployed(address proxy) external view returns (bool);
getProxyAddress
Return the proxy address and whether it is deployed
function getProxyAddress(OptionPSArgs calldata args) external view returns (address proxy, bool isDeployed);
Parameters
| Name | Type | Description |
|---|---|---|
args | OptionPSArgs | The arguments used to deploy the proxy |
Returns
| Name | Type | Description |
|---|---|---|
proxy | address | The proxy address |
isDeployed | bool | Whether the proxy is deployed |
deployProxy
Deploy a new proxy
function deployProxy(OptionPSArgs calldata args) external nonReentrant returns (address proxy);