/// Instantiate Option Factory
OptionFactory optionFactory = OptionFactory("/*address*/");
string name = "WBTC:USDC 12000 31Dec 2020";
string symbol = "PodPut WBTC:USDC";
uint8 optionType = 0; // 0 for Put, 1 for Call
uint8 exerciseType = 0; // 0 for American, 1 for European
address underlyingAsset = 0x2260fac5e5542a773aa44fbcfedf7c193bc2c599;
address strikeAsset = 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48;
uint256 strikePrice = 12000000000; // Using 6 decimals, equal to strikeAsset decimals
uint256 expiration = 1609401600; // timestamp in seconds: 31 Dec 2020 08AM
uint256 exerciseWindowSize = 86400; // 24H in seconds
uint256 isAave = false; // if the collateral token is not aTokens
optionFactory.createOption(
* @notice creates a new PodPut Contract
* @param _name The option token name. Eg. "Pods Put WBTC-USDC 5000 2020-02-23"
* @param _symbol The option token symbol. Eg. "podWBTC:20AA"
* @param _optionType The option type. Eg. "0 for Put, 1 for Call"
* @param _exerciseType The exercise type. Eg. "0 for European, 1 for American"
* @param _underlyingAsset The underlying asset. Eg. "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
* @param _strikeAsset The strike asset. Eg. "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
* @param _strikePrice The option strike price including decimals (strikePriceDecimals == strikeAssetDecimals), Eg, 5000000000
* @param _expiration The Expiration Option date in UNIX timestamp. E.g 1600178324
* @param _exerciseWindowSize The Expiration Window Size duration in UNIX timestamp. E.g 24*60*60 (24h)
* @param _isAave True if the collateral token is aToken
PodOption.OptionType _optionType,
PodOption.OptionType _exerciseType,
address _underlyingAsset,
uint256 _exerciseWindowSize,
) public returns (address) {}