harb/onchain/test
johba 516b7cc087 fix: Correct VWAP price calculation in floor position placement
The VWAP tracker stores price² (squared price) in X96 format, but the floor position
calculation was using it as regular price. This caused two issues:

1. ETH scarcity calculation overestimated required ETH by using price² instead of price
2. ETH abundance floor placement was incorrect due to passing price² to _tickAtPriceRatio

Fixed by taking sqrt(vwapX96) before using it in both ETH scarcity and abundance cases.

Also updated BullMarketOptimizer documentation to be more accurate.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-18 15:33:57 +02:00
..
abstracts feat: Optimize discovery position depth calculation 2025-08-16 16:45:24 +02:00
helpers wip 2025-08-09 18:03:31 +02:00
libraries Fix failing test suite by addressing fuzzing bounds and event expectations 2025-07-15 11:57:28 +02:00
mocks fix: Correct VWAP price calculation in floor position placement 2025-08-18 15:33:57 +02:00
Kraiken.t.sol Complete project rename from HARB/Harberg to KRAIKEN with KRK token symbol 2025-07-11 13:47:42 +02:00
LiquidityManager.t.sol renaming 2025-07-25 19:09:11 +02:00
Stake.t.sol renaming 2025-07-25 19:09:11 +02:00
VWAPTracker.t.sol Consolidate duplicate helper functions and improve test maintainability 2025-07-18 20:30:50 +02:00