OptionRewardFactory

Git Source

Inherits: IOptionRewardFactory, ProxyManager, ReentrancyGuard

State Variables

DEFAULT_FEE

UD60x18 internal immutable DEFAULT_FEE;

DEFAULT_FEE_RECEIVER

address internal immutable DEFAULT_FEE_RECEIVER;

Functions

constructor

constructor(UD60x18 defaultFee, address defaultFeeReceiver);

getDefaultFee

Returns the default fee

function getDefaultFee() external view returns (UD60x18);

getDefaultFeeReceiver

Returns the default fee receiver

function getDefaultFeeReceiver() external view returns (address);

isProxyDeployed

Returns true if proxy is a deployed proxy

function isProxyDeployed(address proxy) external view returns (bool);

getProxyAddress

Returns the proxy address and whether it is deployed

function getProxyAddress(OptionRewardKey calldata key) external view returns (address proxy, bool);

deployProxy

Deploys a new proxy, with ability to override fee and feeReceiver (Only callable by owner)

function deployProxy(OptionRewardKey calldata key) external onlyOwner returns (address proxy);

deployProxy

Deploys a new proxy

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

_deployProxy

function _deployProxy(OptionRewardKey memory key) internal returns (address proxy);