No description
Find a file
johba 2c69963151 feat: Add scenario recording and replay system for invariant debugging
Implements comprehensive fuzzing improvements to find and reproduce invariant violations:

Recording System:
- ScenarioRecorder captures exact trading sequences that violate invariants
- Exports to JSON, replay scripts, and human-readable summaries
- Unique Run IDs (format: YYMMDD-XXXX) for easy communication

Enhanced Fuzzing:
- ImprovedFuzzingAnalysis with larger trades (50-500 ETH) to reach discovery position
- Multiple strategies: Discovery Push, Whale Manipulation, Volatile Swings
- Successfully finds profitable scenarios with 66% success rate

Shell Scripts:
- run-recorded-fuzzing.sh: Automated fuzzing with recording and unique IDs
- replay-scenario.sh: One-command replay of specific scenarios

New Optimizers:
- ExtremeOptimizer: Tests extreme market conditions
- MaliciousOptimizer: Attempts to exploit the protocol

Documentation:
- Updated CLAUDE.md with complete recording workflow
- Enhanced 4-step debugging process
- Quick reference for team collaboration

This system successfully identifies and reproduces the discovery position exploit,
where traders can profit by pushing trades into the unused liquidity at extreme ticks.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-18 20:31:39 +02:00
kraiken-lib added web and split CLAUDs 2025-07-24 16:08:17 +02:00
lib don't know 2024-10-18 09:31:25 +02:00
onchain feat: Add scenario recording and replay system for invariant debugging 2025-08-18 20:31:39 +02:00
services/txnBot added web and split CLAUDs 2025-07-24 16:08:17 +02:00
subgraph/base_sepolia added web and split CLAUDs 2025-07-24 16:08:17 +02:00
web added web and split CLAUDs 2025-07-24 16:08:17 +02:00
.gitignore price multipliers instead of ticks 2025-08-16 18:22:32 +02:00
.gitmodules don't know 2024-10-18 09:31:25 +02:00
CLAUDE.md more docs 2025-08-18 00:16:09 +02:00
README.md Complete project rename from HARB/Harberg to KRAIKEN with KRK token symbol 2025-07-11 13:47:42 +02:00
TECHNICAL_APPENDIX.md Update documentation structure and add technical appendix 2025-07-18 20:40:42 +02:00