Security context

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

ichifarm/ichi-oneToken
master @ 4873873
3
Fixes
0
CVEs
HIGH
Peak severity
100.0%
Coverage
Highlights
Business Logic Error: 1 prior fix. Scrutinize any change in this area.
contracts/version/v1/OneTokenV1.sol: most-fixed (2 issues). Treat as high-risk during review.
1 high-severity fix in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Token Accounting: Redemption used _transfer instead of _burn, allowing redeemed tokens to remain in circulation and enabling double-spending or fund draining. This is the highest-impact historical flaw and the core invariant of the token contract.
Token Approval Manipulation: Old strategy allowance was not zeroed before closing positions, leaving a lingering approval that could be exploited to steal tokens via the stale strategy.
Business Logic Error: Minting fee was not applied to collateral when member tokens were insufficient, allowing users to evade fees and under-collateralize the system.