The set_Deadline
function sets the fund's deadline timestamp but fails to update the deadline_set
flag to true
. This inconsistency in state leads to potential reuse of the function and incorrect state representation.
The set_deadline
function is designed to allow fund creators to set a deadline for contributions only once. However, while the function correctly sets the deadline
timestamp value, it fails to update the deadline_set
flag to true
.
The code performs a check to verify that a deadline hasn't already been set but doesn't update the flag after setting the deadline. This creates an inconsistency in the contract state where:
The deadline value is set in the fund account.
The deadline_set
flag remains false
, incorrectly indicating that no deadline has been set yet.
Medium
Manual Review
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.