Security context

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

suilend/suilend
devel @ d5ba83a
3
Fixes
0
CVEs
HIGH
Peak severity
100.0%
Coverage
Highlights
Access Control / Fee Theft: 1 prior fix. Scrutinize any change in this area.
contracts/sources/lending_market.move: most-fixed (2 issues). 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.

Logic Error - Duplicate Reserve Creation: add_reserve allowed creating multiple reserves for the same coin type, corrupting protocol state; fix added an assert comparing reserve_array_index to vector length.
Access Control / Fee Theft: claim_fees previously relied on owner capability, allowing unauthorized fee collection; fix introduced a dedicated fee_receiver field and direct transfer.
Oracle Manipulation / Price Validation: get_pyth_price_and_identifier read prices without confidence or staleness checks, enabling manipulated/stale price use; fix added both validations.