BriVault

First Flight #52
Beginner FriendlySolidity
100 EXP
View results
Submission Details
Impact: low
Likelihood: low
Invalid

`notRegistered()::BriVault` error is unused

Root + Impact : notRegistered()::BriVault error is unused, increasing gas fee

Description

  • notRegistered()::BriVault error is not used anywhere in the code, which means there is no use of keeping this error.

  • This extra public state variable is increasing the gas fee, hence is not optimized.

contract BriVault is ERC4626, Ownable {
...
@> error notRegistered();
...
}

Risk

Likelihood: Low

Impact: Low

Recommended Mitigation

  • It is best recommended to remove the error from the code completely, as it's not used anywhere in the code and also increasing the gas price unnecessarily.

contract BriVault is ERC4626, Ownable {
...
- error notRegistered();
...
}
Updates

Appeal created

bube Lead Judge 19 days ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

Gas optimizations

Gas optimizations are invalid according to the CodeHawks documentation.

Support

FAQs

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

Give us feedback!