The CreditDelegation library is missing event emissions in its clear() function, which makes it difficult to track when credit delegations are cleared off-chain.
The clear() function in CreditDelegation.sol deletes all storage variables related to a credit delegation but does not emit any event to record this action. This makes it challenging for off-chain applications and monitoring systems to track when credit delegations are cleared.
Location: src/market-making/leaves/CreditDelegation.sol, line 54
Lack of event emission makes it difficult to track and audit credit delegation clearing operations
Off-chain applications cannot easily monitor when credit delegations are cleared
Reduced transparency in the system's operation
Manual code review
Add an event declaration and emit it in the clear() function. Here's the suggested modification:
This change will allow off-chain applications to track when credit delegations are cleared, improving the system's transparency and auditability.
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.