Algo Ssstablecoinsss

First Flight #30
Beginner FriendlyDeFi
100 EXP
View results
Submission Details
Severity: low
Invalid

Missing Token Address in `DSCEngine__CollateralDeposited` Event

Summary

The DSCEngine__CollateralDeposited event lacks the token address, making it difficult to determine which asset was used as the collateral. Including the token address would enhance the event’s completeness, allowing external systems to track collateral deposits accurately.

Impact

Without the token address, off-chain systems relying on this event cannot reconstruct the correct state of the contract, potentially causing inconsistencies in portfolio tracking, analytics, and state synchronization.

Tools Used

Manual review.

Recommendations

Add the token field to the event definition:

event CollateralDeposited:
user: indexed(address)
amount: indexed(uint256)
+ token: address
Updates

Lead Judging Commences

bube Lead Judge 6 months ago
Submission Judgement Published
Invalidated
Reason: Design choice

Support

FAQs

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