Skip to content

Yet another fundraising token protocol for open-source project based on a dynamic greed model

License

Notifications You must be signed in to change notification settings

Zako-DAO/ZakoKen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

28 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

ZakoKen (้›œ้ญšๅˆธ)

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

๐ŸŽฏ Quick Links


๐Ÿ’ก The Problem

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

โœจ The Solution

ZakoKen implements a dual-liquidity mechanism:

  1. Fixed Pool: Project-controlled 1:1 USDC redemption (guaranteed, 0% fee)
  2. Uniswap v4 Pool: Market-driven dynamic pricing (public, dynamic fee)
  3. Project-as-Arbitrageur: Treasury captures profit from price differentials
  4. Cross-Chain: LayerZero OFT enables omnichain accessibility

Key Innovation: Compose Messages for Transparency

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
}

๐Ÿ—๏ธ Architecture (Simplified for Demo)

Deployment Chains

  • 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

Project Structure

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

๐Ÿš€ Quick Start

Prerequisites

  • Node.js 18+
  • pnpm
  • Wallet with Sepolia ETH and Base Sepolia ETH

Installation

# 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 Contracts

# 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.ts

Run Frontend

cd frontend
pnpm install
pnpm dev
# Open http://localhost:5173

๐ŸŽฎ Demo Flow

  1. Connect Wallet โ†’ MetaMask (Sepolia or Base Sepolia)
  2. Simulate Off-Chain Transaction โ†’ Click button to mint ZKK tokens
  3. View Dual Pools:
    • Fixed Pool: 1:1 USDC, 0% fee
    • Uniswap Pool: ~0.998 USDC, 0.05% fee
  4. Swap Tokens โ†’ Choose pool and redeem for USDC
  5. Watch Arbitrage โ†’ Project captures price differential profit
  6. Cross-Chain Transfer โ†’ Send ZKK Sepolia โ†’ Base Sepolia via LayerZero

๐Ÿ† Hackathon Tracks

LayerZero ($20,000)

โœ… OFT standard implementation โœ… Compose messages for off-chain metadata โœ… Cross-chain Sepolia โ†” Base Sepolia โœ… Custom lzCompose() handler

Uniswap Foundation ($10,000)

โœ… v4 Hook with beforeSwap() and afterSwap() โœ… Dynamic fee based on price deviation โœ… Stable-asset AMM logic for ZKK-USDC โœ… Arbitrage opportunity detection

Circle (Optional $4,000)

โญ• Deploy on Arc Public Testnet โญ• Native USDC integration โญ• Programmable redemption logic


๐Ÿ“š Documentation

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:


๐Ÿ”— Resources

Official Documentation

Testnet Faucets

Explorers


๐Ÿ“ฆ Tech Stack

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

๐Ÿค Contributing

This is a hackathon project. Contributions, issues, and feature requests are welcome!


๐Ÿ“ License

MIT License - see LICENSE for details


๐Ÿ‘ฅ Team

Developer: Hannes Gao (Belvast Innovation)

Built for: ETHGlobal Buenos Aires 2025

About

Yet another fundraising token protocol for open-source project based on a dynamic greed model

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published