The game design assumes that the declareWinner function will emit the GameEnded event with several information, among which should be information what pot size was won by a current king.
However, the GameEnded event will be emited with pot equal to 0 which can lead to confusion and incorrect off-chain services functioning.
Likelihood:
Described issue will occur every time when somebody will call the declareWinner function after a grace period expired after which a winner can be picked.
Impact:
Incorrectly emitted event can lead to confusion when verifying data on blockchain explorers.
Off-chain services that depend on correctly emited events can mulfunction.
To mitigate the issue, developers should move the event emision before reseting the pot variable value.
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.