OLM Factories
Factory contracts for easy deployment of OLM contracts
Introduction
The OLM Factory contracts allows anyone to deploy new OLM contracts without compiling and deploying them manually. When deployed, the owner of the OLM is set to the caller.
There are two factories for the two OLM implementations: Manual Strike (MOLMFactory) and Oracle Strike (OOLMFactory).
Manual Strike: Owners must manually update the strike price to change it over time.
Oracle Strike: Strike price is automatically updated based on an oracle and discount. A minimum strike price can be set on the Oracle Strike version to prevent it from going too low.
Deployment
Setting up an OLM requires three steps.
Deploy an OLM contract from a factory.
Fund the OLM contract with
payoutTokens
to pay rewards with (via a simple ERC20 transfer). Owners must monitor the balance ofpayoutTokens
in the contract to ensure that users can claim their rewards.Initialize the OLM contract, including inputting the remaining options and staking parameters.
Step one of this process is accomplished by interacting with one of these factory contracts.
MOLMFactory
Factory for deploying Manual Strike OLM contracts
State Variables
optionTeller
Option Teller to be used by OLM contracts
Functions
deploy
Deploy a new Manual Strike OLM contract with the caller as the owner
Parameters
Returns
OOLMFactory
Factory for deploying Oracle Strike OLM contracts
State Variables
optionTeller
Option Teller to be used by OLM contracts
Functions
deploy
Deploy a new Oracle Strike OLM contract with the caller as the owner
Parameters
Returns