Security context

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

metastreet-labs/metastreet-usdai-contracts
main @ 66e974e
4
Fixes
0
CVEs
HIGH
Peak severity
50.0%
Coverage
Highlights
Access Control: 3 prior fixes. Scrutinize any change in this area.
src/omnichain/OToken.sol: most-fixed (2 issues). Treat as high-risk during review.
4 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.

Access Control: Role-based mint/burn access was replaced with an immutable adapter to prevent privilege escalation; similar role-based patterns may persist elsewhere.
Access Control: Initialization admin role assignment was front-runnable; explicit parameterization is required to avoid attacker-controlled admin.
Access Control: Cross-chain deposits lacked source-chain authorization; a whitelist now restricts which EIDs can initiate deposits.