underlying assetis ETH. Under the hood, it uses WETH in the option contract.
withdrawcan be used the same way as described on PodPut, but instead of receiving an ERC20 as payment,
ETHinstead. The only function with different signature will be
amountOfOptionsunits of the
underlying assetfor the
amountOfOptions * strike priceunits of the strike token. Unlike the exercise used on PodPut, the caller should send ETH in the ratio of 1:1 with
amountOfOptions.The contract will check if the
msg.valueis equal to the
amountOfOptions.Otherwise, the transaction will revert.
amountOfOptions * strikePriceunits of
strike assetare transferred to the caller
amountOfOptionsoption tokens are burned.