set_deadline
function does not validate the provided deadline value.set_deadline
function does not validate the provided deadline value. It allows setting a deadline in the past or to zero, which could lead to immediate closure of the fund or other unintended behaviors.deadline
could immediately make the fund eligible for refunds or withdrawals, bypassing the intended funding period.Setting a deadline
to zero might be interpreted as no deadline
, potentially allowing immediate actions depending on the logic.
The creator has an incentive to pay attention to the deadline and provide correct data. If the `deadline` is set in the past, the campaign will be completed. If there are any funds the creator or the contributors (depending on the success of the campaign) can receive them. It is the creator's responsibility to set correct deadline, otherwise the creator can create a new campaign. There is no impact on the protocol from this missing check, so I consider this to be an informational issue.
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.