Discrepancy in shouldCancelRaffle and shouldDrawRaffle functions
Summary
The function documentation states it should return false in some cases, but the implementation always returns true if it doesn't revert
/// @notice (Public) Check if a raffle should be canceled
/// @param raffleId Raffle ID
/// @return true if the raffle should be canceled, false otherwise
function shouldCancelRaffle(uint256 raffleId) external view returns(bool) {
_checkShouldCancel(raffleId);
return true;
}
/// @notice (Public) Check if a raffle should draw a winner
/// @param raffleId Raffle ID
/// @return true if the winner should be drawn, false otherwise
function shouldDrawRaffle(uint256 raffleId) external view returns(bool) {
_checkShouldDraw(raffleId);
return true;
}
Deep Flint Finch
Low/Info
Discrepancy in shouldCancelRaffle and shouldDrawRaffle functions
Summary
The function documentation states it should return false in some cases, but the implementation always returns true if it doesn't revert
Root Cause
No response
Internal pre-conditions
No response
External pre-conditions
No response
Attack Path
No response
Impact
No response
PoC
No response
Mitigation
No response