Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

arcadia-finance/accounts-v2
main @ 8b6e9c2
3
Fixes
0
CVEs
HIGH
Peak severity
33.3%
Coverage
Highlights
Access Control: 1 prior fix. Scrutinize any change in this area.
src/Factory.sol: most-fixed (1 issue). Treat as high-risk during review.
3 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.

Reentrancy: Deposit flow could be reentered before state updates, allowing attacker to drain funds or manipulate balances.
Access Control: Account transfers lacked ownership and factory/registry validation, enabling unauthorized transfers.
Integer Underflow: Exposure subtraction could underflow when amount exceeds current exposure, corrupting state and causing financial loss.