The AmmFactory is a relatively simple contract that allows an admin to deploy new MinterAmm contracts. It emits the
AmmCreated event upon every successful call to
MinterAmm.createAmm, which can be used in the subgraph to query for all existing AMMs.
It is not very interesting for users of the SIREN protocol, because most of its functions contain the
onlyOwner modifier and thus can only be called by protocol admins.
function seriesController() public view returns (ISeriesController)
SeriesController. This is set on all AMM's the
function amms(bytes32 input,) public view returns (address)
Returns the address of an AMM earlier created by the
The keccak encoding of the AMM's underlying, price, and colalteral tokens
function createAmm(address _sirenPriceOracle,IERC20 _underlyingToken,IERC20 _priceToken,IERC20 _collateralToken,uint16 _tradeFeeBasisPoints) external onlyOwner
Deploys a new
MinterAmm contract with the given parameters. Can only be called by the owner of the
The address of the
The fees to charge on option token trades (100 = 1%)