15,000 USDC
View results
Submission Details
Severity: gas

Missing event for Liquidate function

The DSCEngine.sol contract is missing events for Liquidate function.

Vulnerability Details

In DSCEngine.sol, events are emitted for critical functions such as Deposit or Redeem collateral, providing transparent and observable logs for these operations. However, it appears that there is currently no specific event being emitted in the case of liquidation transactions.

Impact

Emitting events helps provide transparency and allows external systems or frontends to be notified about critical state changes in the contract.

Tools Used

Manual Analysis

Recommendations

Create an event for liquidate function and emit it in the liquidate function.

emit LiquidationEvent(//parameters);

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.