OrderBook::withdrawFees FunctionThe OrderBook::withdrawFees Function Violates the CEI (Checks-Effects-Interactions) Patterns
by performing an external call before updating internal state variable.
This violation increases chances of getting disrupt through reentrancy attacks.
Impact:
1.Minor risk of inconsistent state due to reentancy attacks.
2.Breaks solidity best practices.
3.Static analysis and formal tools may flag this as unsafe.
`withdrawFees()` function performs an external transfer using `iUSDC.safeTransfer()` before resetting totalFees. This breaks the `Checks-Effects-Interactions (CEI)` pattern and can lead to incorrect internal state if the transfer fails for any reason.
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.