- Replaced old FuzzingAnalysis.s.sol with improved RecordedFuzzingAnalysis - Old fuzzing used trades too small (0.1-100% of remaining balance) to reach discovery - New system uses larger trades (50-200 ETH) that successfully find invariants - run-fuzzing.sh now redirects to run-recorded-fuzzing.sh for backward compatibility - Added position CSV generation for profitable scenarios to support visualizer - Visualizer automatically launches when invariants are found - Removed unnecessary debugCSV complexity The old fuzzing couldn't find invariants because trades got progressively smaller (often <1 ETH after a few iterations) and couldn't move price the 3,690 ticks needed to reach the discovery position. The new system maintains large trade sizes throughout the scenario, successfully finding profitable exploits. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
12 lines
No EOL
460 B
Bash
Executable file
12 lines
No EOL
460 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# This script now uses the improved recorded fuzzing system
|
|
# The old FuzzingAnalysis.s.sol has been replaced with RecordedFuzzingAnalysis.s.sol
|
|
# which uses larger trades that can actually reach the discovery position
|
|
|
|
echo "Note: run-fuzzing.sh now uses the improved fuzzing with recording capabilities"
|
|
echo "Redirecting to run-recorded-fuzzing.sh..."
|
|
echo ""
|
|
|
|
# Pass all arguments to the new script
|
|
exec ./analysis/run-recorded-fuzzing.sh "$@" |