Beginner FriendlyFoundryDeFiOracle
100 EXP
View results
Submission Details
Severity: medium
Invalid

Inconsistent state of assetToken's totalsupply and underlying token's balance

Summary

Vulnerability Details

In the "executeOperation" callback when a user calls "flashloan," there is an inconsistency between the "assetToken's total supply" and the "underlying token's balance." This inconsistency occurs because there is no "burn" call before executing "transferUnderlyingTo," as is done in the redeem function.

Impact

Tools Used

Recommendations

It is strongly recommended to add a "burn" call before invoking "transferUnderlyingTo" to ensure consistency between the "assetToken's total supply" and the "underlying token's balance" in the "executeOperation" callback when a user calls "flashloan." This adjustment is essential to address the inconsistency issue effectively.

Updates

Lead Judging Commences

0xnevi Lead Judge
almost 2 years ago
0xnevi Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Vague generalities

Support

FAQs

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