OptionToken

Functions

initialize(string underlyingName, string underlyingSymbol, struct DataTypes.Option optionData)

Initializes the option token. Called by OptionRegistry

Parameters

underlyingName - Underlying asset name
underlyingSymbol - Underlying token name
optionData - A struct defining the Option specification along with the implementation addresses

mint(address impl, uint256 amt, bytes mintData)

Mint a new option using an approved implementation

Parameters

impl - Address of the implementation being used
amt - Amount of options to mint
mintData - Additional data being passed down to the implementation. Used for passing impl specific data

wrap(address impl, uint256 amt, bytes tokenData)

Mint Polynomial Option Token by submitting any of the implementation option tokens

Parameters

impl - Address of the implementation being used
amt - Amount of options to mint
tokenData - Additional token data for ERC721/1155

redeem(address impl, uint256 amt, bytes redeemData)

Claim collateral before expiry, to be called by the minter (if allowed by the underlying protocol/impl)

Parameters

impl - Address of the implementation being used
amt - Amount of options/collateral to claim
redeemData - Additional data being passed down to the implementation. Used for passing impl specific data

settle()

Settle options & collaterals. Only called after expiry + 6 hours Settling happens once for all options and collateral. The option settlement from all impls are distributed to holders

settleOne(address impl)

Settle one implementation

Parameters

impl - Address of the implementation

claim()

Claim payout & remaining collateral from all impls