s_currentlyFlashLoaning[token] = true is set at line 198, after the external call assetToken.updateExchangeRate(fee) at line 194. This violates the Checks-Effects-Interactions pattern — the guard meant to signal an active flash loan is not in place during the first external call.
While Slither classifies this as reentrancy-benign no direct fund loss proven from this specific ordering alone. It compounds with H-01 and reduces the reliability of the reentrancy guard as a defence mechanism.
Set s_currentlyFlashLoaning[token] = true before any external call:
The contest is live. Earn rewards by submitting a finding.
Submissions are being reviewed by our AI judge. Results will be available in a few minutes.
View all submissionsThe contest is complete and the rewards are being distributed.