A Dynamic Fundraising Stablecoin Protocol for Open-Source Projects
ZakoKen combines LayerZero's Omnichain Fungible Token (OFT) standard with Uniswap v4 hooks to create a dual-liquidity mechanism that stabilizes token prices while maximizing project treasury value through controlled arbitrage.
๐ ETHGlobal Buenos Aires Hackathon Project
- ๐ LayerZero: Cross-chain token with compose messages
- ๐ฆ Uniswap Foundation: Dynamic fee hooks for stable-asset AMM
- ๐ต Circle (Optional): Native USDC integration on Arc
- Hackathon Guide: docs/zakoken_hackathon_guide.md โก START HERE!
- Quick start checklist (15 min)
- Complete 18-hour execution plan
- Technical specifications
- Submission requirements
- Architecture: docs/zakoken_architecture_doc.md
- Development: docs/zakoken_development_doc.md
- Deployment: docs/zakoken_deployment_doc.md
Traditional fundraising tokens suffer from:
- Pump-and-dump schemes harming late participants
- Unfair token concentration benefiting early investors
- Lack of price stability in secondary markets
- Project treasury depletion without sustainable value capture
ZakoKen implements a dual-liquidity mechanism:
- Fixed Pool: Project-controlled 1:1 USDC redemption (guaranteed, 0% fee)
- Uniswap v4 Pool: Market-driven dynamic pricing (public, dynamic fee)
- Project-as-Arbitrageur: Treasury captures profit from price differentials
- Cross-Chain: LayerZero OFT enables omnichain accessibility
Every token mint/burn attaches off-chain transaction metadata via LayerZero compose messages:
struct ComposeMsg {
bytes32 transactionHash; // Off-chain tx identifier
uint256 timestamp; // Transaction time
uint256 amount; // Minted/burned amount
address recipient; // Token recipient
bytes32 projectId; // Project ID
uint256 greedIndex; // Greed multiplier
}- Ethereum Sepolia: Full deployment (ZKK-OFT + Fixed Exchange + Uniswap v4 Hook)
- Base Sepolia: ZKK-OFT for cross-chain demo
- Arc Testnet (Optional): Standalone deployment with native USDC
ZakoKen/
โโโ contracts/ # Smart contracts (Hardhat)
โ โโโ src/ # Solidity source files
โ โโโ script/ # Deployment scripts
โ โโโ test/ # Contract tests
โโโ frontend/ # React frontend application
โ โโโ src/
โ โ โโโ components/ # React components
โ โ โโโ hooks/ # Custom hooks
โ โ โโโ utils/ # Helper functions
โ โโโ public/
โโโ docs/ # Documentation
โโโ EXECUTION_PLAN.md # 18-hour sprint plan
- Node.js 18+
- pnpm
- Wallet with Sepolia ETH and Base Sepolia ETH
# Clone repository
git clone https://github.com/ZakoDAO/ZakoKen.git
cd ZakoKen
# Install dependencies
pnpm install
# Setup environment
cp .env.example .env
# Edit .env with your private key and RPC URLs# Deploy to Sepolia
pnpm hardhat run scripts/deploy-zkk.ts --network sepolia
# Deploy to Base Sepolia
pnpm hardhat run scripts/deploy-zkk.ts --network baseSepolia
# Configure LayerZero peers
pnpm hardhat run scripts/configure-layerzero.tscd frontend
pnpm install
pnpm dev
# Open http://localhost:5173- Connect Wallet โ MetaMask (Sepolia or Base Sepolia)
- Simulate Off-Chain Transaction โ Click button to mint ZKK tokens
- View Dual Pools:
- Fixed Pool: 1:1 USDC, 0% fee
- Uniswap Pool: ~0.998 USDC, 0.05% fee
- Swap Tokens โ Choose pool and redeem for USDC
- Watch Arbitrage โ Project captures price differential profit
- Cross-Chain Transfer โ Send ZKK Sepolia โ Base Sepolia via LayerZero
โ
OFT standard implementation
โ
Compose messages for off-chain metadata
โ
Cross-chain Sepolia โ Base Sepolia
โ
Custom lzCompose() handler
โ
v4 Hook with beforeSwap() and afterSwap()
โ
Dynamic fee based on price deviation
โ
Stable-asset AMM logic for ZKK-USDC
โ
Arbitrage opportunity detection
โญ Deploy on Arc Public Testnet โญ Native USDC integration โญ Programmable redemption logic
All documentation is in the docs/ directory. See docs/README.md for complete index.
Primary Document (All-in-One):
- Hackathon Guide โญ - Complete guide with quick start, 18-hour plan, and specifications
Supporting Documents:
- Architecture - Full technical specification
- Development - Development instructions
- Deployment - Deployment steps
Smart Contracts:
- Solidity ^0.8.20
- Hardhat + Ethers v6
- LayerZero OFT SDK
- Uniswap v4 Core & Periphery
- OpenZeppelin Contracts
Frontend:
- React 18 + TypeScript
- Vite
- RainbowKit + wagmi
- TailwindCSS
- ethers.js / viem
This is a hackathon project. Contributions, issues, and feature requests are welcome!
MIT License - see LICENSE for details
Developer: Hannes Gao (Belvast Innovation)
Built for: ETHGlobal Buenos Aires 2025