harb/onchain/src
johba 61ea25517c fix: Fix discovery position KRAIKEN amount calculation
The discovery position was incorrectly calculating ETH amount instead
of KRAIKEN amount when determining how much to subtract from outstanding
supply. This caused the floor position to be placed at extreme ticks
(141k+) instead of bordering the anchor position.

When token0isWeth=true:
- Before: discoveryAmount = getAmount0 (ETH amount)
- After: discoveryAmount = getAmount1 (KRAIKEN amount)

This ensures the outstanding supply calculation properly excludes all
KRAIKEN tokens locked in liquidity positions.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-18 17:05:32 +02:00
..
abstracts fix: Fix discovery position KRAIKEN amount calculation 2025-08-18 17:05:32 +02:00
helpers beautified 2025-07-08 10:33:10 +02:00
interfaces beautified 2025-07-08 10:33:10 +02:00
libraries more docs 2025-08-18 00:16:09 +02:00
Kraiken.sol more docs 2025-08-18 00:16:09 +02:00
LiquidityManager.sol fix: Fix discovery position KRAIKEN amount calculation 2025-08-18 17:05:32 +02:00
Optimizer.sol more docs 2025-08-18 00:16:09 +02:00
Stake.sol more docs 2025-08-18 00:16:09 +02:00
VWAPTracker.sol more docs 2025-08-18 00:16:09 +02:00