Potential vulnerable to readonly-reentrancy function
ThunderLoan.isCurrentlyFlashLoaning(IERC20) (src/protocol/ThunderLoan.sol#268-270):
State variables read that were written after the external call(s):
ThunderLoan.s_currentlyFlashLoaning (src/protocol/ThunderLoan.sol#99) was read at s_currentlyFlashLoaning[token] (src/protocol/ThunderLoan.sol#269)
This variable was written at (after external call):
s_currentlyFlashLoaning[token] = true
s_currentlyFlashLoaning[token] = false (src/protocol/ThunderLoan.sol#216)
The Token might be minted wrongly as a rewards due to the reentrancy attack.
Slither, Manual Review
Recommend adding the nonReentrant modifer
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.