The applyRepairFundUpdate
function updates the repairFund
state variable but does not emit an event to log this change. This omission makes it difficult to track state changes off-chain, reducing transparency and auditability of the protocol.
The function updates the repairFund
state variable but does not emit an event to log this change. Events are critical for off-chain monitoring, auditing, and transparency, as they provide a record of state changes on the blockchain.
Off-chain systems and users cannot easily track changes to the repairFund
address, making it harder to monitor the protocol's state.
Manual code review
To address this issue, emit an event when the repairFund
state variable is updated. Define an event (if not already defined) and emit it after updating the state. Update the function as follows:
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.