Submitted by KupiaSec
Because of incorrect validation, it allows option buyers not to pay premium.
When long leg is minted or short leg is burnt, the protocol checks liquidity spread by calculating TotalLiquidity / NetLiquidity and allows it not exceed 9.
However in the check function, the validation is ignored when NetLiquidity is zero.
This means when a user mints long leg that buys whole selling amount, the liquidity spread is not checked.
This issue allows the option buyer not to pay premium, and here is why:
Since there is no difference in owed premium value, the option buyer will not pay the premium when burning the option.
When checking liquidity spread, it should revert when N is zero and T is positive:
Context
dyedm1 (Panoptic) confirmed
