The `Claimed` event is the canonical on-chain record that should allow off-chain consumers to identify which treasure was claimed and who received the payout.
The implementation emits `msg.sender` in the `recipient` slot even though the ETH transfer is sent to the `recipient` function argument. This causes the event stream to misreport the beneficiary of each successful claim.
Likelihood: HIGH
Every successful claim where the caller and payout recipient differ produces an incorrect event.
The repository already supports this exact usage pattern by allowing a finder to bind a proof to a separate `recipient` address.
Impact: LOW
Indexers, analytics, and operational tooling that rely on the event stream will attribute payouts to the wrong address.
Incident response and payout accounting become less reliable because logs diverge from actual fund flows.
Add this test case to test file and run this test case
Change the second params of emitting Claimed from msg.sender to recipient
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.