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

ReadOnly Reentrancy (Upgraded)

Summary

Vulnerability Details

Location:

Potential vulnerable to readonly-reentrancy function (if read in other function) ThunderLoanUpgraded.isCurrentlyFlashLoaning(IERC20) (src/upgradedProtocol/ThunderLoanUpgraded.sol#266-268):
State variables read that were written after the external call(s):

  • ThunderLoanUpgraded.s_currentlyFlashLoaning (src/upgradedProtocol/ThunderLoanUpgraded.sol#99) was read at s_currentlyFlashLoaning[token] (src/upgradedProtocol/ThunderLoanUpgraded.sol#267)
    This variable was written at (after external call):

  • s_currentlyFlashLoaning[token] = true (src/upgradedProtocol/ThunderLoanUpgraded.sol#196)

  • s_currentlyFlashLoaning[token] = false (src/upgradedProtocol/ThunderLoanUpgraded.sol#214)

Impact

Tools Used

Audit Wizard (Slither)

Recommendations

Check original reentrancy

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.