Low
The contract uses inconsistent error handling patterns, mixing custom errors with require statements and naked reverts, which reduces code quality and readability.
In the expel
function, there is a naked revert statement:
Also, in the giveReview
function, string error messages are used instead of custom errors:
This inconsistency makes the contract harder to maintain and less gas-efficient, as string error messages consume more gas than custom errors.
Replace the naked revert with a descriptive custom error:
Replace require statements with custom errors:
Following a consistent error handling pattern improves code quality, readability, and gas efficiency.
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.