Overview
This is CK Finance development documentation.
As of September 2024, CK Finance is still developing the Concentrated Liquidity Automated Market Maker (CLAMM) model. This model aims to allow liquidity providers to offer their assets within specific price ranges, enhancing capital efficiency and providing deeper liquidity for traders. The project is not yet complete, and throughout 2024, we continue to work on innovations and improvements in this area to deliver the most efficient solutions to our users.
CK Finance v1, recognizing the need for adaptability and scalability, separates Accounting logic from AMM logic, implements a three-tiered modular architecture (see image below) that consists of the Vault, Pool Managers, and Hooks. This allows for easier integration of evolving AMM paradigms without requiring a complete protocol overhaul.
CK Finance v1 takes a more open-ended approach, empowering pool creators with greater customization capabilities. The introduction of hooks enables the integration of custom features like bespoke oracles, dynamic fee components, active liquidity management strategies, diverse order types, and more. The non-upgradeable core ensures stability, while each pool can integrate its own hook smart contract at creation.
Additionally, each AMM implementation/Pool Type has an independent Singleton implementation, optimizing gas efficiency for new pool deployment and multi-hop transactions.
Flash Accounting complements the Singleton contract design by consolidating transaction settlement, computing net balances for a batch of transactions, and settling them collectively, reducing gas consumption.