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