The struct Fund
has a field named dealine_set
, which appears to be a misspelling of deadline_set
. This can cause unexpected behavior when trying to access or modify this field.
The field is defined as pub dealine_set: bool,
in the Fund
struct.
In set_deadline
, the code checks if fund.dealine_set {
, which refers to the incorrect field name.
This means that deadline_set
is never actually modified or used correctly.
The deadline-setting functionality will not work as intended.
The contract might allow multiple deadline changes due to the incorrect field reference.
Rename dealine_set
to deadline_set
in the Fund
struct.
Update all references to dealine_set
throughout the program.
This is strong informational finding, there is no impact for the protocol. The variable is the same on all places.
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.