shikhar - _checkShouldCancel
doesn't revert for the case when tickets sold are equal to minimum ticket threshold due to insufficient check.
#270
Labels
Excluded
Excluded by the judge without consulting the protocol or the senior
Non-Reward
This issue will not receive a payout
Sponsor Confirmed
The sponsor acknowledged this issue is valid
Will Fix
The sponsor confirmed this issue will be fixed
shikhar
Medium
_checkShouldCancel
doesn't revert for the case when tickets sold are equal to minimum ticket threshold due to insufficient check.Summary
_checkShouldCancel
simply returns to the caller function if Raffle is to be cancelled otherwise it reverts.cancelRaffle
function. Thus, leaving an eligible Raffle into a cancelled Raffle and the lucky participant will not get the prize.Vulnerability Detail
_checkShouldCancel
function where it doesn't revert for the case when supply is exactly minimum ticket threshold (when Raffle end time has reached).Impact
Code Snippet
https://github.com/sherlock-audit/2024-08-winnables-raffles/blob/main/public-contracts/contracts/WinnablesTicketManager.sol#L440
Tool used
Manual Review
Recommendation
Correct the check as below:
The text was updated successfully, but these errors were encountered: