DeFiLayer 1Layer 2
14,723 OP
View results
Submission Details
Severity: low
Invalid

Errors can be more detailed to provide more information

Summary

Require statement is missing the error string

Vulnerability Details
https://github.com/CodeHawks-Contests/2025-03-curve/blob/198820f0c30d5080f75073243677ff716429dbfd/contracts/scrvusd/verifiers/ScrvusdVerifierV2.sol#L74

require(slot.exists);

Impact

It is best practice to provide a descriptive reason so that important information can be captured when errors occur. Not having them impacts users who can't understand error affecting usability and developers ability to debug, track errors, maintain code and can even have security implications

Tools Used

Manual

Recommendations

Add error string

require(slot.exists. "slot does not exist");
Updates

Lead Judging Commences

0xnevi Lead Judge
3 months ago
0xnevi Lead Judge 2 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

[invalid] finding-error-can-be-more-explicit

Informational, non-acceptable severity given it has arguably no security impact

Support

FAQs

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