underlying asset
is ETH. Under the hood, it uses WETH in the option contract. mint
, unmint
, and withdraw
can be used the same way as described on PodPut, but instead of receiving an ERC20 as payment, msg.sender
could receive ETH
instead. The only function with different signature will be exerciseEth
amountOfOptions
units of the underlying asset
for theamountOfOptions * strike price
units of the strike token. Unlike the exercise used on PodPut, the caller should send ETH in the ratio of 1:1 withamountOfOptions.
The contract will check if the msg.value
is equal to the amountOfOptions.
Otherwise, the transaction will revert.amountOfOptions * strikePrice
units of strike asset
are transferred to the calleramountOfOptions
option tokens are burned.expirationWindow
period, depending on the exercise type.