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> |
||
|---|---|---|
| .. | ||
| abstracts | ||
| helpers | ||
| libraries | ||
| mocks | ||
| Kraiken.t.sol | ||
| LiquidityManager.t.sol | ||
| Stake.t.sol | ||
| VWAPTracker.t.sol | ||