Highlights
Logic Error: 3 prior fixes. Scrutinize any change in this area.
src/broker/CreditBroker.sol: most-fixed (2 issues). Treat as high-risk during review.
8 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns
The bug types that recur here, drawn from past fixes, not open vulnerabilities.
Authorization Bypass: Spoofed brokers could forge calls because broker registration was not validated before role checks, enabling unauthorized operations on fixed-term positions.
Authorization Bypass: Missing market and pair whitelist checks allowed unauthorized liquidation and token sales, bypassing intended access controls.
Logic Error: Users with existing debt could borrow again, creating a logic error that could lead to financial loss; the fix added a debt check.