The Standard

The Standard
DeFiHardhat
20,000 USDC
View results
Submission Details
Severity: medium
Invalid

`SmartVaultV3:burn` inncorrect minted amount leads to underflow cause to function revert

Summary

When attempting to decrease the "minted" balance in the code, potentially resulting in a revert case if you try to remove more than what's currently available..

Vulnerability Details

when you try to remove more from the "minted" balance than what is present, potentially leading to revert case.

Impact

User can't burn his EURO token

Tools Used

Manual Review

Recommendations

Add a check to ensure the subtraction in the burn function won't exceed the current "minted" balance. See example:

require(minted >= _amount, "Insufficient minted balance for burning");
minted = minted - _amount;
Updates

Lead Judging Commences

hrishibhat Lead Judge over 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

fee-loss

hrishibhat Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Design choice
Assigned finding tags:

fee-loss

Support

FAQs

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