The popDebtFromQueue
function of the AccountingEngine
contract is emitting a useless event whenever someone tries to call it with a debtBlockTimestamp
that has not been saved before.
To simplify the code and prevent wastage of gas, avoid emitting unnecessary events.
- OpenZeppelin GEB Protocol Finding N11
- Auditing & Logging
- Unnecessary Event Emits
- No Significance
- Remove Emits
- Save Gas