New Ask Functions
The functions to create a new ask, and what you can do with that new ask
For a token holder looking to sell a new call option, they would use the method newAsk to create the initial new ask. This involves defining the parameters of token amount, strike, price and expiry. This method pulls the appropriate token amount into the contract for escrow and generates a call on the smart contract memory.
If the short realizes they made a mistake, they have the option to cancel the ask or change the ask still, so long as no one has purchased the call yet. Assuming that is the case they may Change the option details still with the below changeNewOption method. If there are any changes to the token amount, then the difference would be pulled into the contract or refunded to them.
If the writer simply wants to cancel their option entirely - they of course may do this with the cancelNewAsk method. Once called - the call option will effectively be considered "closed" or "cancelled", and the tokens will be returned back to the short. This call option cannot be purchased or used in anyway anymore.
Copy link