Raffle loosers can use MEV to determine the next winner and rescue stake.
selectWinner function calculates winner thus:
Using a MEV transaction call, a caller can easily calculate the winner since all the three calculation parameters are known at the time the block is generated. On determining that they have lost, they can easily call refund + selectWinner.
The contest looses fee from MEV users.
Manual review
Disable refund after contest period has ended. Add this code to refund function:
Root cause: bad RNG Impact: manipulate winner
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.