Kofi Finance Documentation
website·Indexed 32 days ago
https://docs.kofi.financeDocumentation for Kofi Finance, a next-gen liquid staking protocol on Aptos. Features guides on liquid staking fundamentals, the dual token model (kAPT and stkAPT), validator requirements, security audits, and developer resources for integrating with core protocol contracts.
What's inside Kofi Finance
- Kofi Finance provides educational resources to help users understand liquid staking on the Aptos network. The curriculum covers the fundamentals of liquid staking, technical mechanics, benefits and risks, comparisons with traditional staking, and key ecosystem terminology.
Overview of Kofi Liquid Staking on Aptos
Kofi is a liquid staking protocol on Aptos that allows users to stake APT and receive liquid staking tokens (LSTs). The protocol focuses on three main value propositions: high composability of kAPT and stkAPT across Aptos DeFi protocols, boosted yields compared to other Aptos LSTs, and a seamless user interface for managing staked positions.Overview of Kofi Liquid Staking smart contracts
The Kofi protocol is managed by four primary smart contract components:
- Gateway Contract: Manages the entry and exit points for deposits, withdrawals, and the minting of liquid staking tokens.
- Staking Manager: Handles the logic for validator selection and delegation strategies.
- Reward Distribution: Responsible for calculating and distributing the staking rewards earned from the network.
- Token Contracts: Implements the logic and behaviors for the kAPT and stkAPT tokens.
Benefits of becoming a Kofi validator partner
Partnerships with Kofi provide validators with:
- Stable Delegations: Consistent stake allocation from the Kofi protocol.
- Governance Input: Ability to provide feedback on protocol development.
- Boosted Yields: Access to additional yield opportunities beyond base staking rewards.
Compare Traditional, Delegated, and Liquid Staking
Depending on your technical expertise, capital, and liquidity needs, you can choose between three primary staking methods:
- Traditional Staking: Running your own validator node. Offers maximum control and rewards but requires high technical expertise, significant capital (e.g., 1M APT on Aptos), and carries infrastructure costs ($1k-$5k/month).
- Delegated Staking: Assigning tokens to an existing validator. Lower barrier to entry (e.g., 11 APT on Aptos) and simpler process, but assets are locked and validators take a commission (typically 5-20%).
- Liquid Staking: Depositing tokens into a protocol to receive tradable liquid tokens. Provides instant liquidity and capital efficiency for DeFi, though it introduces smart contract risk and protocol fees.
Understand stkAPT yield-bearing token
stkAPT (Staked kAPT) is a yield-bearing asset created by staking kAPT. Unlike kAPT, the value of stkAPT relative to kAPT increases over time as staking rewards accrue and compound daily. For example, with a 7% APR, 1 stkAPT would be worth at least 1.07 kAPT after one year.Understand Liquid Staking and Liquid Staking Derivatives (LSD)
Liquid Staking is a method that issues transferable tokens representing staked assets, allowing users to maintain liquidity while earning staking rewards.
A Liquid Staking Derivative (LSD) is the specific token that represents this staked position in a proof-of-stake network. These tokens can be traded, transferred, or used as collateral in DeFi while the underlying assets remain staked.
Kofi Finance ongoing security measures
Beyond initial audits, Kofi Finance maintains a continuous security posture through:
- Regular code reviews
- Continuous monitoring
- A bug bounty program
- Periodic re-audits following protocol updates
Understand Proof of Stake (PoS) and Validator roles
Proof of Stake (PoS) is a consensus mechanism where validators are selected to create new blocks based on the amount of cryptocurrency they have staked.
- Validator: A node responsible for validating transactions and creating blocks. They stake tokens as collateral to ensure honest behavior.
- Staking: The process of locking up cryptocurrency to support network security in exchange for rewards.
- Delegation: Assigning tokens to a validator to participate in staking without running a node personally.
- Slashing: A penalty where a portion of staked tokens is lost due to validator malicious behavior or operational failure.
Understand Kofi's dual liquid staking token model
Kofi employs a dual-token system to manage liquid staking on Aptos:
- kAPT: A liquid staked token (LST) pegged 1:1 with APT. It is designed to remain pegged to APT and is always redeemable for the underlying staked APT.
- stkAPT (Staked kAPT): A token that provides the base APT staking reward yields plus additional boosted yields captured through various methods on the Aptos network.
Understand Kofi core protocol Move modules
The Kofi protocol is composed of several Move modules, each handling specific logic for liquid staking and reward management:
gateway.move: The main entry point for staking/unstaking APT and minting/burning kAPT.kapt_coin.move: The Liquid Staking Token (LST) contract representing staked APT at a 1:1 ratio.stkapt_coin.move: The yield-bearing token contract for staked kAPT, containing reward accrual logic.minting_manager.move: Handles reward calculations and the distribution of staking and boosted yields.staking_manager.move: Manages validator selection, delegation amounts, and rebalancing.delegation_manager.move: Manages protocol fees, revenue distribution, and treasury operations.rewards_manager.move: Manages the distribution of staking rewards and boosted yields.withdrawal_manager.move: Handles withdrawal logic and gas compensation.config.move: Manages protocol configuration and parameters.errors.move: Defines the error codes used across the protocol.
Understand the Kofi Finance security strategy
Kofi Finance employs a multi-layered security approach centered on three primary pillars: comprehensive audits, secure development practices, and risk management. The strategy focuses on protecting user funds and ensuring protocol reliability through continuous improvement and transparency.