harb/onchain/test
giteadmin 8de3865c6f fix: extract VWAP logic and fix critical dormant whale vulnerability
- Extract VWAP tracking logic into reusable VWAPTracker contract
- Fix critical compression bug that erased historical price memory
- Replace dangerous 10^35x compression with limited 1000x max compression
- Add comprehensive dormant whale protection testing
- Preserve "eternal memory" to prevent manipulation by patient whales
- Add double-overflow analysis showing 1000x limit is mathematically safe
- Maintain backwards compatibility with existing LiquidityManager

Security Impact:
- Prevents dormant whale attacks where traders accumulate early then exploit
  compressed historical data to extract value at inflated prices
- VWAP now maintains historical significance even after compression
- Floor position calculations remain anchored to true price history

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-08 10:31:41 +02:00
..
helpers testing price boundaries 2025-07-06 10:08:59 +02:00
mocks testing price boundaries 2025-07-06 10:08:59 +02:00
Harberg.t.sol took out UBI and cleaned up 2025-01-23 13:21:49 +01:00
LiquidityManager.t.sol better tests 2025-07-06 11:45:25 +02:00
Stake.t.sol took out UBI and cleaned up 2025-01-23 13:21:49 +01:00
VWAPDoubleOverflowAnalysis.t.sol fix: extract VWAP logic and fix critical dormant whale vulnerability 2025-07-08 10:31:41 +02:00
VWAPTracker.t.sol fix: extract VWAP logic and fix critical dormant whale vulnerability 2025-07-08 10:31:41 +02:00