GameEnded emits pot after it's reset to 0 (should capture pre-reset value), causing off-chain systems to log 0 instead of the actual distributed pot amount. No functional impact – winnings are correctly assigned to pendingWinnings, but event data misrepresents game outcomes.
In declareWinner function, the pot is reset to 0 before emitting GameEnded:
This causes the event to log pot=0 instead of the actual distributed amount (the pre-reset value). While contract state is correctly updated (winnings secured in pendingWinnings), the event data becomes inaccurate for off-chain consumers (e.g., analytics dashboards, frontends).
Impact:
GameEnded logs pot as 0, causing off-chain misreporting of game results.
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.