The contract allows deadlines to be set in the past, which can immediately make funds expired.
The set_deadline function accepts any deadline value without validating that it's in the future, allowing fund creators to set deadlines that have already passed.
Setting deadlines in the past can create funds that are immediately expired, preventing contributors from participating and potentially allowing the creator to withdraw funds immediately
Add to tests/rustfund.ts:
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.