Open sherlock-admin2 opened 1 month ago
Parvez.eth
Medium
Precision loss in calculation
Division operations followed directly by multiplication operations can lead to precision loss due to the way integer arithmetic is handled in Solidity.
precision loss
compoundedFactor_ = _previousCompoundedFactor * (1e18 + (perSecondRate / 1000 * _timePeriod)) / 1e18;
Manual Review , VS Code
Parvez.eth
Medium
Incorrect Order of Division and Multiplication
Summary
Precision loss in calculation
Vulnerability Detail
Division operations followed directly by multiplication operations can lead to precision loss due to the way integer arithmetic is handled in Solidity.
Impact
precision loss
Code Snippet
Tool used
Manual Review , VS Code