fix presentation

This commit is contained in:
johba 2025-08-15 18:21:49 +02:00
parent bcec691bbb
commit 7ac6b33850
3 changed files with 37 additions and 9 deletions

View file

@ -44,6 +44,36 @@ This directory contains the core smart contracts for the KRAIKEN protocol.
- **Price Validation**: 5-minute TWAP with 50-tick deviation tolerance
- **VWAP Compression**: Maximum 1000x compression factor
### Optimizer Parameters
All optimizers must return four key parameters that control the LiquidityManager's three-position strategy:
1. **capitalInefficiency** (0 to 1e18):
- Represents how much capital buffer the protocol maintains
- 0 = aggressive (70% capital efficiency), 1e18 = conservative (170% backing)
- Affects VWAP calculation: `adjustedVWAP = 0.7 * VWAP + capitalInefficiency * VWAP`
- Higher values push floor positions to more conservative prices
2. **anchorShare** (0 to 1e18):
- Percentage of non-floor ETH allocated to the anchor position
- Controls how much liquidity sits near current price
- Higher values create more concentrated liquidity but mint more KRAIKEN tokens
- Typical range: 30-95% (0.3e18 to 0.95e18)
3. **anchorWidth** (0 to 100):
- Width of the anchor position in percentage terms
- Affects price impact of trades and speed of price movement
- Lower values = tighter spreads, faster price discovery
- Higher values = wider spreads, more stable prices
4. **discoveryDepth** (0 to 1e18):
- Controls the discovery position's liquidity density relative to anchor
- Maps to internal multiplier range of 2x to 10x
- At 0: discovery has 2x liquidity per tick vs anchor (minimal)
- At 1e18: discovery has 10x liquidity per tick vs anchor (maximum)
- Discovery amount formula: `pulledHarb * DISCOVERY_SPACING * (200 + 800 * discoveryDepth/1e18) / anchorSpacing / 100`
- Higher values provide stronger anti-arbitrage protection but consume more minted tokens
## Development Commands
```bash