Kokoro Protocol
Author
wang
Date Published

Overview
Kokoro Protocol is a fully on-chain DeFi protocol platform built on Solana with 18 Anchor programs. Users open positions directly through smart contracts, a backend VRF resolver generates verifiable randomness, and a keeper bot handles liquidations. The frontend connects to wallets via Solana Wallet Adapter and sends transactions through a typed TypeScript SDK.
The protocol combines on-chain strategies with full DeFi infrastructure — prediction markets, lending, leveraged positions, yield vaults, governance, and a constant-product AMM DEX — all running on-chain with verifiable outcomes.
Architecture
The platform consists of 18 Anchor programs organized into four categories. Infrastructure programs (platform-treasury, user-vault, house-pool, reward-pool) handle funds and staking. Strategy programs (game-dice, game-crash, game-coinflip, game-slots, game-sports) implement on-chain strategies with configurable parameters. DeFi programs (prediction-market, lending-protocol, leveraged-betting, yield-vaults, nft-auction) provide financial primitives. Platform programs (liquidation-engine, platform-token, governance, dex-amm) complete the ecosystem.
A Fastify backend provides real-time WebSocket feeds (8 channels for live events, prices, and liquidations), VRF resolution for verifiable randomness, blockchain listeners, risk monitoring, and oracle services. A keeper bot automates liquidations of unhealthy lending and leverage positions.
Key Features
On-Chain Strategies — Range selection, momentum, binary options, vault spin, and event markets — all with configurable parameters, protocol fees, and instant on-chain resolution.
DeFi Primitives — Prediction markets with share-based pricing, collateralized lending with dynamic interest rates, up to 5x leveraged positions, tiered yield vaults (Conservative to Degen), and on-chain NFT auctions.
Platform Infrastructure — LP-funded liquidity pool with circuit breaker protection, CHIP utility token, on-chain DAO governance with proposal creation and voting, constant-product AMM DEX, and a four-tier staking rewards system with rebates and referrals.
Verifiable Fairness — Every outcome is resolved through on-chain VRF (verifiable random functions). All positions can be independently verified via their on-chain address. Provably fair outcomes through math, not trust.
Technical Decisions
Anchor was chosen for its type safety and composability across 18 programs that share state via PDAs and cross-program invocations. A shared Rust crate provides common types across all programs. The TypeScript SDK wraps every program with typed clients and PDA helpers, making frontend integration straightforward. Fastify handles the backend with WebSocket support for real-time feeds, while a dedicated keeper bot ensures liquidations happen promptly regardless of frontend availability.
Status
Kokoro Protocol is currently in development. All 18 Anchor programs are built, the TypeScript SDK is complete, and the frontend works with mock fallback data while programs are being audited for devnet deployment.