OptionsContract.calculateOTokens(uint256,OptionsContract.Number) (OptionsContract.sol#908-943) performs a multiplication on the result of a division #152
Labels
crytic
Create by crytic security report
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.
The text was updated successfully, but these errors were encountered: