# Audit Report Template

This template generates standardized smart contract security audit reports.

---

# [Project Name] Smart Contract Security Audit Report

## 1. Executive Summary

| Item | Details |
|------|---------|
| **Audit Date** | YYYY-MM-DD |
| **Audit Scope** | Contract list and versions |
| **Security Level** | [S]/[M]/[Q] |
| **Total Findings** | High: X / Medium: Y / Low: Z / Info: W |
| **Overall Rating** | A/B/C |

---

## 2. Project Overview

### 2.1 Protocol Type
- Category: [DEX/Lending/Cross-chain/NFT/Governance]
- Key Components: [List main contracts]

### 2.2 Audit Scope
| File | Lines | Description |
|------|-------|-------------|
| ContractA.sol | XXX | Core logic |
| ContractB.sol | XXX | Proxy contract |

---

## 3. Detailed Findings

### [High] H-01: [Vulnerability Title]

**Location**: `Contract.sol#functionName()` line XX

**Description**: 
Detailed description of the vulnerability.

**Impact**: 
What could happen if exploited.

**Reproduction Steps**:
1. Step 1
2. Step 2
3. Step 3

**Code Example**:
```solidity
// Vulnerable code
function vulnerableFunction() external {
    // ...
}
```

**Recommendation**:
```solidity
// Fixed code
function fixedFunction() external {
    // ...
}
```

---

### [Medium] M-01: [Vulnerability Title]

**Location**: `Contract.sol#functionName()`

**Description**: 
Description here.

**Impact**: 
Impact description.

**Recommendation**:
Fix recommendation here.

---

### [Low] L-01: [Issue Title]

**Location**: `Contract.sol`

**Description**: 
Description here.

---

## 4. Security Assessment

### 4.1 Dimension Scores

| Dimension | Score | Notes |
|-----------|-------|-------|
| Access Control | XX/100 | |
| Reentrancy Protection | XX/100 | |
| Signature Security | XX/100 | |
| Asset Handling | XX/100 | |

### 4.2 EEA Compliance

| Requirement | Status | Notes |
|-------------|--------|-------|
| [S] No tx.origin | ✅/❌ | |
| [S] No selfdestruct | ✅/❌ | |
| [M] External Calls | ✅/❌ | |
| [Q] Documentation | ✅/❌ | |

---

## 5. Test Coverage

| Category | Tool | Coverage |
|----------|------|----------|
| Static Analysis | Slither X.XX | XX% |
| Unit Tests | Foundry | XX% |
| Fuzz Tests | Foundry | XX runs |

---

## 6. Recommendations

### 6.1 Critical
1. [Critical recommendation]

### 6.2 Important
1. [Important recommendation]

### 6.3 Nice to Have
1. [Optional recommendation]

---

## 7. Appendix

### 7.1 Environment
- Compiler: solc X.X.X
- Optimization: enabled/disabled
- Network: Ethereum Mainnet/L2

### 7.2 References
- Documentation: [URL]
- Previous Audits: [URL]

---

*Report generated by [Auditor Name]*