DeFiFoundry
50,000 USDC
View results
Submission Details
Severity: low
Invalid

Missing Event Field Indexing

Summary

Multiple events lack indexed fields, preventing efficient filtering and querying of historical data. Specifically affected are:

Minted Event

event Minted(uint256 depositId, address depositor, uint256 shareAmount, uint256 depositAmount);

Missing indexing for depositId and depositor,
Critical for tracking user deposits and balances

Burned Event

event Burned(uint256 depositId, address recipient, uint256 shareAmount, uint256 amount);

Missing indexing for depositId and recipient
.Essential for withdrawal tracking

DexSwap Event

event DexSwap(
address inputToken,
uint256 inputAmount,
address outputToken,
uint256 outputAmount,
bool isCollateralToIndex
);

Missing indexing for inputToken and outputToken,
Vital for trade history analysis

GmxSwap Event

event GmxSwap(
address inputToken,
uint256 inputAmount,
address outputToken,
uint256 outputAmount,
bool isCollateralToIndex
);

Missing indexing for inputToken and outputToken,
Critical for swap analytics

Impact

  • Inefficient historical data retrieval.

  • Limited ability to monitor suspicious activity.

  • Unable to efficiently track user activities.

Mitigation

Immediate fixes:

event Minted(uint256 indexed depositId, address indexed depositor, uint256 shareAmount, uint256 depositAmount);
event Burned(uint256 indexed depositId, address indexed recipient, uint256 shareAmount, uint256 amount);
event DexSwap(
address indexed inputToken,
uint256 inputAmount,
address indexed outputToken,
uint256 outputAmount,
bool isCollateralToIndex
);
event GmxSwap(
address indexed inputToken,
uint256 inputAmount,
address indexed outputToken,
uint256 outputAmount,
bool isCollateralToIndex
);
Updates

Lead Judging Commences

n0kto Lead Judge 5 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

Informational or Gas

Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelihood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.

n0kto Lead Judge 5 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

Informational or Gas

Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelihood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.

Support

FAQs

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