The fulfillRandomWords()
call may revert and the contract logic will be blocked.
It is recommended by chainlink that the fulfillRandomWords()
callback should simply store the randomness and taking more complex follow-on actions in separate contract calls made by contract owner or users. Because in case of revert VRF service will not attempt to call it a second time and contract functionality will be blocked.
High
Vs Code.
Remove complex logic from fulfillRandomWords()
and make another function for receiving of reward for 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.