Constants should be be used for hardcoded values, especially if the constants already exist, as it is in this case in DSCEngine
.
In DSCEngine::_calculateHealthFactor the 1e18
can be safely (and contextually) replaced with the already declared PRECISION
constant.
Use the PRECISION
constant instead of 1e18
.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.