You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OptionsContract.calculateOTokens(uint256,OptionsContract.Number) (OptionsContract.sol#908-943) performs a multiplication on the result of a division #152
OptionsContract.calculateOTokens(uint256,OptionsContract.Number) performs a multiplication on the result of a division:
-numeratorVal = (collateralAmt.mul(collateralToEthPrice)).div(strikeToEthPrice)
-numOptions = numeratorVal.mul(10 ** exp).div(denomVal)
Consider ordering multiplication prior division.