Open code423n4 opened 2 years ago
_valueBefore variable is wrapped by parenthesis but this is not needed.
_valueBefore
https://github.com/code-423n4/2022-03-prepo/blob/main/contracts/core/Collateral.sol#L89
_shares = (_amountToDeposit * totalSupply()) / (_valueBefore);
_shares = (_amountToDeposit * totalSupply()) / _valueBefore;
Valid claim, but lower severity to 0. Does not affect functionality and is a code style nit.
Ignore mentions, accidentally referred to issue 19 when i meant 18 for duplicate issues.
No need to wrap with parenthesis
Target codebase
_valueBefore
variable is wrapped by parenthesis but this is not needed.https://github.com/code-423n4/2022-03-prepo/blob/main/contracts/core/Collateral.sol#L89
Proposed change