OptionPSFactory

Git Source

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

NameTypeDescription
argsOptionPSArgsThe arguments used to deploy the proxy

Returns

NameTypeDescription
proxyaddressThe proxy address
isDeployedboolWhether the proxy is deployed

deployProxy

Deploy a new proxy

function deployProxy(OptionPSArgs calldata args) external nonReentrant returns (address proxy);