1) Access control
- Hàm nào cần
onlyOwner/role? - Có đường nào bypass không (ví dụ
setOwnersai)?
2) Reentrancy
- External call trước khi update state?
- Có dùng CEI pattern (Checks-Effects-Interactions) không?
3) Input validation
requirerõ ràng với message- Tránh “magic numbers”, define constants
4) Tests & simulations
- Unit test các case fail
- Fuzz/property tests (nếu có)
Kết
Checklist không thay thế audit, nhưng giúp bạn loại phần lớn lỗi “đập vào mặt” trước khi lên mainnet.