Closed c4-judge closed 1 year ago
kirk-baird marked the issue as duplicate of #84
kirk-baird marked the issue as not a duplicate
kirk-baird marked the issue as nullified
Nullify to downgrade back to QA
This auto-generated issue was withdrawn by kirk-baird
Judge has assessed an item in Issue #648 as 2 risk. The relevant finding follows:
Summary:
The function start doesn't have a require condition to check if the current time is greater than or equal to the start time of the quest.
Impact:
If a user calls start before the quest's start time, the quest may be started but the rewards will not be redeemable by the users.
Recommendation:
Add a require condition to check if the current time is greater than or equal to the start time of the quest.
Example:
function start() public override { require(now >= startTime, "Start time has not been reached yet."); if (IERC20(rewardToken).balanceOf(address(this)) < maxTotalRewards() + maxProtocolReward()) revert TotalAmountExceedsBalance(); super.start(); }