Commit cfce78f
committed
fix: use anchor paid_at as canonical double-claim guard in claim_prize
The PrizeClaimed flag (fast-path) can TTL-expire while winner rows
stay live from get_winners/winner_at reads. Added && paid_at.is_none()
to the anchor scan so a claimed anchor (paid_at: Some(...)) prevents
replay even if the separate flag has expired.1 parent 89db965 commit cfce78f
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
736 | 736 | | |
737 | 737 | | |
738 | 738 | | |
739 | | - | |
| 739 | + | |
740 | 740 | | |
741 | 741 | | |
742 | 742 | | |
| |||
0 commit comments