The declareWinner()
function is expected to emit the GameEnded
event with the actual prize amount (pot) that the winner has won before resetting it to zero.
Issue:
The event emits pot
after it is reset to zero, causing the event log to display 0
instead of the actual prize amount. This breaks transparency for off-chain systems, indexers, and UIs, which rely on event data for game history and payouts.
Likelihood:
Always occurs when the declareWinner()
function is called.
Impact:
Off-chain analytics, game history, and frontends will show 0 prize amount.
Users might lose trust as logs suggest the prize is zero.
Potential compliance and auditing issues since event logs serve as a source of truth for blockchain applications.
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.