Commit graph

14 commits

Author SHA1 Message Date
johba
76d84341de feat: add ABI validation helpers for Ponder (#29)
resolves https://codeberg.org/johba/harb/issues/23

Co-authored-by: openhands <openhands@all-hands.dev>
Reviewed-on: https://codeberg.org/johba/harb/pulls/29
2025-09-30 20:02:43 +02:00
johba
f3fb0f142a fix agent 2025-09-24 09:57:20 +02:00
johba
769fa105b8 added web-app and landing 2025-09-23 14:18:04 +02:00
johba
01471b7037 more docs 2025-08-18 00:16:09 +02:00
johba
50eac74b18 better visualizer 2025-08-17 15:09:41 +02:00
johba
9f0b163303 wip 2025-08-09 18:03:31 +02:00
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