Beginner FriendlyFoundryNFT
100 EXP
View results
Submission Details
Severity: low
Invalid

`Dussehra:killRavana` uses div arithmetic operations.

Summary

Dussehra:killRavana uses div arithmetic operations.

Vulnerability Details

Solidity does not support floating-point numbers and in Dussehra:killRavana using div arithmetic operations can produce floating-point result.

Impact

Any division operation will result in integer division, where the fractional part is truncated (i.e., rounded down), so if the the result of the division is a floating-point result the amount will be rounded down.

Tools Used

Manual review

Recommendations

To handle floating-point precision issues in Solidity, you can use fixed-point arithmetic. This involves representing all numbers as integers, scaled by a factor that represents the desired precision

Updates

Lead Judging Commences

bube Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

Info/Gas/Invalid according to docs

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.