The code implementation does not match the description provided in the corresponding comments.
During the auditing process, I noticed this comment: // ($10e18 * 1e18) / ($2000e8 * 1e10)
. Then, I substituted it into the calculation formula (usdAmountInWei * PRECISION) / (uint256(price) * ADDITIONAL_FEED_PRECISION)
for computation.
In the end, I found that the content of this comment is incorrect. It should be $10e8
instead of $10e18
. Considering $2000e8
, it can be inferred that it should be $10e8
.
Manual Review
Update the comments to keep them consistent.
Reference:Discrepancy between code and comments
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.