The term "magic number" refers to the anti-pattern of using numbers directly in source code. This has been referred to as breaking one of the oldest rules of programming.
There is 1 instance of this issue.
File Link | Instance Count | Instance Link |
---|---|---|
EscrowFactory.sol | 1 | 72 |
The use of unnamed magic numbers in code obscures the developer's intent in choosing that number, increases opportunities for subtle errors, and makes it more difficult for the program to be adapted and extended in the future.
baudit: a custom static code analysis tool; manual review
Replace all significant magic numbers with named constants to make the contracts easier to read, understand, and maintain.
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.