Missing Minimum Balance Check in constructor which is not following the comments
The constructor initializes state variables and ensures that the verifier is not the zero address
In the constructor is the following comment, Owner should fund 100 ETH at deployment (10 treasures × 10 ETH). This is however not enforced.
Likelihood:
This occurs whenever the contract is being deployed
Impact:
The contact can be deployed with 0 ETH since there is no one stopping its deployment.
The impact is not very serious since claim() would revert
just to be safe and make this good for production, it might be good to add the check in the constructor
The liquidity-enforcement issue arises because the protocol assumes the hunt will be funded with enough ETH to cover all rewards, but the contract itself does not actively enforce that invariant at deployment time. The constructor accepts arbitrary `msg.value` and only validates the verifier address, even though the contract hardcodes a reward of 10 ether and a maximum of 10 treasures, implying an expected full funding target of 100 ether; the README likewise states that the contract is expected to be funded with enough ETH to cover all rewards and notes that the default deployment flow uses 100 ether. Although the deployment script sets `DEFAULT_INITIAL_FUNDING = 100 ether`, it also allows that amount to be overridden via `vm.envOr("INITIAL_FUNDING", DEFAULT_INITIAL_FUNDING)`, and the only post-deployment balance check is that the contract balance equals the chosen `initialFunding`, not that the chosen amount is actually sufficient to fund the full hunt. As a result, the system can be deployed in an underfunded state after which otherwise valid claims will begin reverting with `NotEnoughFunds()` once the balance drops below a single reward payment.
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.