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

Challenges with Rising Exchange Rates Leading to Token Redemption Issues

Summary

Vulnerability Details

In the ThunderLoan deposit function, the user's mintAmount includes the fee. When no one uses the flashloan function, users may not be able to redeem all their tokens, as the exchange rate continues to rise. If this behavior is intentional on the part of the author, it may be left as is.

Impact

Tools Used

Recommendations

To ensure the deposit function works consistently, you can implement a logic model where the fee is calculated before calling assetToken.mint. Then, assign mintAmount to the original amount plus the fee. This model will function reliably even when no one calls the flashloan function.

Updates

Lead Judging Commences

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

Support

FAQs

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