set_deadline
function is used by the owner to set the deadline of a fund after creation, this will serve as the ONLY method to determine if the fund is over or not.In Fund
struct there are two instances which allowes the tracking of the deadline, which is deadline_set
(boolean) and deadline
which is the actual value of the deadline, the set_deadline function is implemented as follows
here, if the fund.deadline is true then this would return with the error Err(ErrorCode::DeadlineAlreadySet.into())
.But even if the deadline is set, the dealine_set
boolean is not set to true, meaning that it will be possible to call this function even after setting the dealine.
Deadline can be changed again and again.
Manual analysis
adding the following line in the set_deadline
function
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.