Moonwell

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

Missing Validation on Bad Debt When `MOONWELL_mxcDOT`

Summary

In mip-m17.sol, the validation for MOONWELL_mxcDOT misses checking the bad debt which should not be 0.

Vulnerability Details

Similar to MOONWELL_mFRAX, the bad debt in MOONWELL_mxcDOT should not be 0 since it is intended to record the actual bad debt in fixUser.

Impact

This is more like an Inconsistency issue and a better-have issue to ensure the fixUser operation for MOONWELL_mxcDOT is processed.

Tools Used

Manual

Recommendations

Similar validation should be added for MOONWELL_mxcDOT, to avoid unexpected fix result:

assertTrue(
mErc20Delegator.badDebt() != 0,
"mxcDOT bad debt should not start at 0"
);
Updates

Lead Judging Commences

0xnevi Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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