DOCUMENTATION

Welcome to KiiChain

KiiChain is a next-generation decentralized yield protocol that aggregates and optimizes DeFi yields across multiple blockchains. This documentation will help you understand how the protocol works, how to integrate with it, and how to participate in governance.

๐Ÿฆ Vaults

Smart contract pools that automatically deploy capital into yield-generating strategies.

โšก Strategies

On-chain algorithms that route capital to the highest-yielding protocols in real time.

๐Ÿ—ณ๏ธ Governance

KII holders vote on protocol parameters, new vaults, and treasury spending.

๐Ÿ” Security

Multi-layered security with audits, bug bounties, and formal verification.

Core Concepts

Understanding how KiiChain works will help you get the most from the protocol. Here are the key building blocks:

Vaults

Vaults are the primary interface for users. When you deposit assets into a vault, you receive vault shares (kTokens) that represent your portion of the vault. As the vault earns yield, the share price increases โ€” meaning your kTokens become worth more over time.

Harvest Cycle

Every 4 hours, a keeper bot triggers the harvest() function on each active strategy. This function claims all pending rewards, sells them for the vault's base asset, and reinvests them. The compounding effect is what drives the high APYs you see.

// Simplified harvest logic
function harvest() external {
  uint256 rewards = strategy.claimRewards();
  uint256 bought = swapForBaseAsset(rewards);
  vault.reinvest(bought);
  emit Harvested(bought, block.timestamp);
}

Architecture

KiiChain is built as a modular system where vaults are separated from strategies, enabling upgradeable yield strategies without touching user funds.

User Wallet
โ†’
Vault (kTokens)
โ†’
Strategy Router
Strategy Router
โ†’
Aave / Compound
+
Uniswap v3
+
Lido / Rocket

Getting Started

Follow these steps to start earning with KiiChain:

1 Connect your wallet โ€” Visit app.kiichain.icu and click "Connect Wallet". We support MetaMask, WalletConnect, Coinbase Wallet, and Rainbow.

2 Choose a vault โ€” Select from our four vaults based on your risk appetite and desired assets.

3 Deposit โ€” Enter the amount and confirm the transaction. You'll receive kTokens representing your share.

4 Earn passively โ€” Sit back and watch your kToken value increase as the vault harvests and compounds.

Fees

KiiChain uses a simple fee structure:

Performance fees are split: 70% to the protocol treasury, 30% to KII stakers as revenue share.

SDK Integration

Integrate KiiChain yield into your own dApp using our TypeScript SDK:

npm install @kiichain/sdk

import { KiiChain } from '@kiichain/sdk';

const kii = new KiiChain({ chain: 'ethereum' });

// Get vault info
const vault = await kii.getVault('stable');
console.log(vault.apy, vault.tvl);

// Deposit
const tx = await kii.deposit({
  vault: 'stable',
  amount: '1000000', // 1000 USDC (6 decimals)
  token: 'USDC',
  signer: yourSigner,
});
await tx.wait();

Contract Addresses

ContractNetworkAddress
KiiVault (Stable)Ethereum0x1234...abcd
KiiVault (ETH Boost)Ethereum0x5678...efgh
KII TokenEthereum0x9abc...1234
KiiGovernorEthereum0xdef0...5678