Commit graph

8 commits

Author SHA1 Message Date
johba
10702f5aa3 feat: Enhance fuzzing with staking integration and configurable parameters
- Add staking/unstaking actions to fuzzing scenarios (stake every 3rd trade)
- Implement snatching logic when stake pool reaches capacity (uses max tax rate)
- Add configurable parameters:
  - buyBias: Control buy vs sell ratio (0-100%)
  - stakingBias: Control stake vs unstake ratio (0-100%)
  - tradesPerRun: Configure number of trades per scenario
  - staking: Enable/disable staking entirely
- Simplify to single trading strategy (_executeRandomLargeTrades)
- Fix memory issues by recording only every 5th trade to CSV
- Track staking metrics (stakes attempted/succeeded, snatches attempted/succeeded)
- Update CLAUDE.md with new fuzzing parameters and usage examples
- Clean up old TODO files and unused code

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-19 14:57:49 +02:00
johba
50eac74b18 better visualizer 2025-08-17 15:09:41 +02:00
johba
6a012c5fd9 price multipliers instead of ticks 2025-08-16 18:22:32 +02:00
johba
2205ae719b feat: Optimize discovery position depth calculation
- Implement dynamic discovery depth based on anchor position share
- Add configurable discovery_max_multiple (1.5-4x) for flexible adjustment
- Update BullMarketOptimizer with new depth calculation logic
- Fix scenario visualizer floor position visibility
- Add comprehensive tests for discovery depth behavior

The discovery position now dynamically adjusts its depth based on the anchor
position's share of total liquidity, allowing for more effective price discovery
while maintaining protection against manipulation.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-16 16:45:24 +02:00
johba
7ac6b33850 fix presentation 2025-08-15 18:21:49 +02:00
johba
c2d7c3c6c3 fixed visualizer 2025-08-10 11:56:21 +02:00
giteadmin
7f3810a871 Fix token assignment issue in ThreePositionStrategy and improve analysis tools
- Fix token assignment bug in discovery and floor position calculations
- Correct economic model: Floor holds ETH, Discovery holds KRAIKEN
- Update scenario visualizer labels and token assignments
- Add comprehensive CSV generation with realistic token distributions
- Consolidate analysis tools into SimpleAnalysis.s.sol with debugging functions
- Update README with streamlined analysis instructions
- Clean up analysis folder structure for better organization

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-15 11:46:25 +02:00
giteadmin
ac715c544a separated scenarios from tests 2025-07-06 11:20:35 +02:00