Each treasure reward can be claimed only once.
Multiple claims on the same Treasure are allowed due to the bug.
Likelihood:
Reason 1: Each claim will run this check.
Impact:
Impact 1: Line 88 checks claimed[_treasureHash] (an immutable storage variable that is never initialized, defaults to bytes32(0)) instead of claimed[treasureHash] (the function parameter). This causes the duplicate check to always validate the same storage slot regardless of which treasure is being claimed.
A valid treasure discovery can claim multiple times.
Replace the _treasureHashwith treasureHashin claim function: TreasureHunt.claim().
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.