ntropika-labs / potion-protocol

2 stars 3 forks source link

fix: options pnl fix cu 32bny5e #147

Closed wonderbeel closed 1 year ago

wonderbeel commented 1 year ago

This PR fix the formula used to calculate the PnL of expired options and adds some extra checks to the parameters; it also extrapolate it together with the formula used to estimate the PnL of active options in a dedicated helper to add a couple of unit tests to ensure that we don't have any regression in the future.

aurelianoB commented 1 year ago

Task linked: CU-32bny5e Component - PnL formula in OtokenClaimTable is wrong