No description
Find a file
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
kraiken-lib added web and split CLAUDs 2025-07-24 16:08:17 +02:00
lib don't know 2024-10-18 09:31:25 +02:00
onchain fix: Correct VWAP price calculation in floor position placement 2025-08-18 15:33:57 +02:00
services/txnBot added web and split CLAUDs 2025-07-24 16:08:17 +02:00
subgraph/base_sepolia added web and split CLAUDs 2025-07-24 16:08:17 +02:00
web added web and split CLAUDs 2025-07-24 16:08:17 +02:00
.gitignore price multipliers instead of ticks 2025-08-16 18:22:32 +02:00
.gitmodules don't know 2024-10-18 09:31:25 +02:00
CLAUDE.md more docs 2025-08-18 00:16:09 +02:00
README.md Complete project rename from HARB/Harberg to KRAIKEN with KRK token symbol 2025-07-11 13:47:42 +02:00
TECHNICAL_APPENDIX.md Update documentation structure and add technical appendix 2025-07-18 20:40:42 +02:00