Commit graph

8 commits

Author SHA1 Message Date
johba
8a82d10a7e added web and split CLAUDs 2025-07-24 16:08:17 +02:00
giteadmin
8ee33e4f5a correction 2025-07-24 14:30:32 +02:00
giteadmin
ddf1ac038e Fix technical inaccuracies in CLAUDE.md documentation
- Correct Kraiken.sol description (ERC20 token, not main protocol contract)
- Fix LiquidityManager.sol inheritance chain description
- Add missing technical specifications (fee tier, tick spacing, TWAP validation)
- Add verification note for asymmetric slippage claims
- Ensure documentation matches actual implementation

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-18 22:36:02 +02:00
giteadmin
80f0b8217c Update documentation structure and add technical appendix
- Restructure CLAUDE.md to lead with unique technical innovations
- Add comprehensive TECHNICAL_APPENDIX.md with detailed analysis
- Focus on conceptual clarity for AI assistant guidance
- Merge redundant sections and condense development commands
- Clarify economic model and user journeys
- Add proper cross-references between documents

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-18 20:40:42 +02:00
giteadmin
74143dfac7 Complete project rename from HARB/Harberg to KRAIKEN with KRK token symbol
- Renamed core contract from Harberg.sol to Kraiken.sol
- Updated token symbol from HARB to KRK
- Renamed TypeScript library from harb-lib to kraiken-lib
- Updated all contract imports and references across smart contracts
- Modified subgraph schema and source files for new naming
- Updated transaction bot dependencies and service references
- Fixed test files to use new contract and token names
- Updated documentation in CLAUDE.md and README.md
- Regenerated subgraph types and ABI files
- Added new deployment script (DeployScript2.sol)

All components compile successfully and tests pass.
Smart contracts:  Compilation and tests pass
TypeScript library:  Package renamed and configured
Subgraph:  Code generation and build successful
Transaction bot:  Dependencies updated

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-11 13:47:42 +02:00
giteadmin
30fa49d469 Implement anti-arbitrage strategy validation test
- Add testAntiArbitrageStrategyValidation() to LiquidityManager.t.sol
- Validates asymmetric slippage profile protects against trade-recenter-reverse attacks
- Test results: 80% round-trip slippage loss proves protection mechanism effective
- Confirms ANCHOR (17% ratio) vs FLOOR/DISCOVERY (deep) liquidity design
- Update CLAUDE.md with comprehensive anti-arbitrage strategy documentation
- Update VWAP_TEST_GAPS.md marking anti-arbitrage validation as completed

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-08 11:25:30 +02:00
giteadmin
8de3865c6f fix: extract VWAP logic and fix critical dormant whale vulnerability
- Extract VWAP tracking logic into reusable VWAPTracker contract
- Fix critical compression bug that erased historical price memory
- Replace dangerous 10^35x compression with limited 1000x max compression
- Add comprehensive dormant whale protection testing
- Preserve "eternal memory" to prevent manipulation by patient whales
- Add double-overflow analysis showing 1000x limit is mathematically safe
- Maintain backwards compatibility with existing LiquidityManager

Security Impact:
- Prevents dormant whale attacks where traders accumulate early then exploit
  compressed historical data to extract value at inflated prices
- VWAP now maintains historical significance even after compression
- Floor position calculations remain anchored to true price history

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-08 10:31:41 +02:00
giteadmin
79c26e3c31 testing price boundaries 2025-07-06 10:08:59 +02:00