Version 21 - mainnet - 0xed...dd68dd
Readme
Versions
21
Dependencies
0
Dependents
0
Analytics
On the way
Kai Leverage is a suite of Move smart contracts that powers leveraged concentrated liquidity provisioning, built on the models and findings from "Concentrated Liquidity with Leverage" (arXiv:2409.12803). It provides robust core functionality for creating and managing leveraged positions, including precise debt and equity accounting, dynamic liquidity supply pool management, and secure operations for deleveraging and liquidation operations—while ensuring safe margin levels across price ranges. Its modular design supports integrations with protocols like Cetus and Bluefin Spot, enhancing capital efficiency and mitigating market risks such as price manipulation.
Overall, Kai Leverage seamlessly integrates robust theoretical models with a practical, modular design to provide a secure and efficient infrastructure for leveraged liquidity provisioning. These smart contracts power real-world DeFi applications at https://kai.finance.
Kai Leverage provides a robust framework to:
The project is organized into several key modules:
kai_leverage::position_core_clmmkai_leverage::position_model_clmmkai_leverage::debt_infokai_leverage::piecewisekai_leverage::debt_bag and kai_leverage::balance_bagkai_leverage::equitykai_leverage::debtkai_leverage::supply_pool
This is the heart of the lending functionality. It maintains the available balance, tracks total liabilities, and manages the interaction between users supplying liquidity and positions taking funds. It uses both debt and equity registries and enforces risk and utilization limits.
Additionally, it includes:
Kai Leverage also includes protocol-specific logic that leverages the core modules:
kai_leverage::cetus):kai_leverage::bluefin_spot):You can install this package in your Move project by calling
mvr add @kai/leverageModular smart contracts for secure, efficient leveraged liquidity provisioning.
dev@kunalabs.io