Location: contracts/src/TreasureHunt.sol:7-25 (declarations)
TreasureHunt.sol:7-25 declares custom errors such as OnlyOwnerCanFund, OnlyOwnerCanPause, NoFundsToWithdraw, HuntNotOver, InvalidAmount. They are never used. The contract reverts with strings instead:
Likelihood: Medium every admin path and every revert uses strings instead of the declared custom errors.
Impact: Low. Higher gas on revert, larger bytecode, noisier ABI, tooling that parses error selectors cannot match the declared ABI.
Run:
The test passes, confirming the custom error OnlyOwnerCanFund is declared but never selected.
Switch every require(..., "STRING") to if (!cond) revert CustomError(); using the already declared errors. Example:
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.
The contest is complete and the rewards are being distributed.