How To Create Your Own Pool
You will need 4 steps to create your own option:
Get the
OptionAMMFactory
addressGet either the
OptionAMMFactory ABI
(web3) or theOptionAAMMFactory interface
(solidity)Define the parameters of your pool
Call the
createPool()
function with the parameters
1. Get the OptionAMMFactory address
1) Instantiate our ConfigurationManager
contract. Check our deployed contracts page here.
2) Call the function getAMMFactory()
.
2. Get OptionAMMFactory ABI or Interface
You can find both ABI and interface of OptionFactory in our Github repo. Always check if you are on the master branch to get our latest live update.
3. Define your pool parameters
In order to deploy a new option amm pool you will need only 3 parameters:
OptionTokenAddress
StableTokenAddress (We use the assumption that any stable token is equal to 1 USD)
InitialIV => This is the initial implied volatility for the pool
4. Call the createPool()
function
createPool()
functionNow that we have the OptionAMMFactory
address, ABI, interface and we have also defined the initial parameters, its time call the createPool()
function.
Last updated