The dealine_set bool member in Fund struct that is written to and read from in fund_create and set_deadline functions has the same typo error. It's misspelled by missing the letter d and should be deadline_set, despite the fact that this error doesn't cause a security vulnerability; it introduces ambiguity and increases the risk of future errors in code upgradeability.
Line 190: the dealine_set bool member in struct Fund has a typo, it should be deadline_set:
Line 20: fund.dealine_set = false
Line 57: In set_deadline function, dealine_set typo:
Code Maintainability: The typo complicates code readability and increases the likelihood of errors if future developers mistakenly introduce a correctly spelled field (deadline_set) alongside the incorrect one (dealine_set) leading to **conflicting logic.
Ambiguity: The misspelling could confuse developers or auditors interpreting the purpose of the field.
No Direct Security Risk: The typo alone doesn't bypass security invariants, as long as the misspelling is consistent.
Manual Code Review
Rename dealine_set to deadline_set in the Fund struct.
Update the set_deadline function to reference to fund.deadline_set.
Fix the fund_create function to reference to fund.deadline_set = false.
If on-chain state already exists with dealine_set, renaming it directly may invalidate existing accounts. To avoid breaking stored data and ensure backward comptability:
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.