Beginner FriendlyFoundryNFT
100 EXP
View results
Submission Details
Severity: high
Invalid

No functions to call the selectWinner function every x seconds automatically.

Summary

There's no function in the smart contract which would call the selectWinner after every x seconds automatically as mentioned in the docs.

Vulnerability Details

function selectWinner() external {
...
}

As per the docs, the smart contract (raffle) should be able to call the selectWinner function after every x seconds.
But there is no such function that would trigger the selectWinner function every x seconds.

Ref from docs : 4. Every X seconds, the raffle will be able to draw a winner and be minted a random puppy.

Here I assume that raffle is referring to the smart contract . If the function is to be called by the owner then the docs should have mentioned Every X seconds, the owner will ... .

Impact

The selectWinner function is not automatically called after every x seconds.

Tools Used

VS Code

Recommendations

Add chainlinks automation to automate the calling of the selectWinner function every x seconds.

Updates

Lead Judging Commences

Hamiltonite Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: User experience and design improvement

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.