Skip to content

frey-web3/redkey-dao

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”‘ RedKey DAO

Decentralized Investment & Lending Protocol Governed by Community Consensus

RedKey DAO is a next-generation decentralized autonomous organization (DAO) built as a mini app on the Avalanche C-Chain. It empowers communities to collectively manage a treasury, vote on investment proposals, and participate in peer-to-peer lending β€” all through a sleek, terminal-inspired dark UI.

Built for the Avalanche ecosystem. Designed for transparency. Governed by its members.


✨ Features

🏠 Landing Page

A stunning, animated landing page introducing the DAO's vision and core value propositions with smooth Framer Motion animations and a cyberpunk-inspired aesthetic.

πŸ“Š Dashboard

A command-center style dashboard providing real-time overview of:

  • Treasury balance & metrics
  • Active proposals and loan activity
  • Live audit trail log with color-coded action types
  • AVAX price tracking with live market data
  • Latest Avalanche ecosystem news feed

🏦 Treasury & Onchain Execution

Full transparency into DAO finances with live Avalanche C-Chain integration:

  • πŸš€ LIVE SHOWCASE: Onchain Contributions β€” Connect your wallet and send actual USDC, USDT, or AVAX directly to the RedKey DAO treasury smart contract on the Avalanche network.
  • πŸš€ LIVE SHOWCASE: Onchain Transaction Log β€” Real-time verification of on-chain treasury movements fetched directly from the blockchain via Alchemy API.
  • Onchain Treasury Dashboard (/dao/treasury/onchain) β€” A dedicated command center displaying individual AVAX, USDC, and USDT balances with live USD equivalents (AVAX price via CoinGecko).
  • Comprehensive fund overview: Total balance, allocated funds, and available funds.
  • Contribution tracking per member and reserve ratio monitoring.

πŸ“œ Proposals

Community-driven investment governance:

  • Create and submit investment proposals with risk assessment
  • Configurable voting parameters (quorum, approval threshold, voting period)
  • Real-time voting progress with weighted voting power
  • Proposal lifecycle tracking (Draft β†’ Submitted β†’ Voting β†’ Passed/Failed β†’ Executing β†’ Completed)
  • Comment and discussion threads per proposal

πŸ’Ό Portfolio

Post-funding transparency and performance tracking:

  • Track deployed capital and actual performance of funded projects
  • Detailed metrics including ROI, stage, and ecosystem impact
  • Verifiable links to project smart contracts and social spaces

πŸ’° Loans (P2P Lending)

A peer-to-peer liquidity market:

  • Request loans with flexible tenors (3, 6, or 9 months)
  • Flat interest rates tied to tenor (3% / 6% / 9%)
  • 100% collateral requirement for borrower protection
  • Community-funded lending β€” any member can fund a portion of a loan
  • Full loan lifecycle management with credit tier system (Gold / Silver / Bronze / New)

πŸ“‘ Signal

Smart money tracking on the Avalanche network:

  • Track whale and smart money wallet addresses
  • View the latest 100 transactions per address via Alchemy API
  • Analyze on-chain activity patterns

πŸ‘₯ Identity & Reputation System

Comprehensive member directory and progression system:

  • Public Profiles (/dao/profile/[address]) β€” Searchable public member profiles displaying identity metrics, customizable bio, social links, and a visual Reputation Matrix.
  • Private Profiles (/dao/profile) β€” Personal command center with inline editing allowing members to manage their DAO identity.
  • Partner Reputation Integration β€” Members can claim reputation badges based on their activity in other Avalanche ecosystem dApps (e.g., Blackhole protocol). Claimed badges directly calculate into an aggregated "Partner Reputation" score displayed on the profile matrix.
  • Role-based access (Super Admin, Admin, Member, Observer).
  • Voting power calculation (60% stake weight + 40% reputation weight).
  • Credit tier tracking for P2P lending eligibility.

πŸ’¬ Discussion

Community forum for open dialogue:

  • Create discussion topics
  • Threaded replies
  • Member activity tracking

πŸ“„ Docs & Litepaper

In-app documentation including the DAO manifesto and litepaper for onboarding new members.


πŸ›  Tech Stack

Layer Technology
Framework Next.js 15 (App Router, Turbopack)
Language TypeScript
UI Library React 19
Styling TailwindCSS 4
Animations Framer Motion
Icons Lucide React
Charts Recharts
UI Primitives Radix UI (Dialog, Dropdown, Tabs, Tooltip, etc.)
Web3 SDK Thirdweb v5 (Wallet connection, in-app wallets, contract interaction)
Blockchain Avalanche C-Chain
Blockchain Data Alchemy API (Transaction history)
Backend/DB Firebase
Notifications Sonner (Toast notifications)
Deployment Vercel

πŸ“ Project Structure

dao/
β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ AvaxNewsSection.tsx    # Avalanche ecosystem news feed
β”‚   β”œβ”€β”€ AvaxPriceCard.tsx      # Live AVAX price widget
β”‚   β”œβ”€β”€ DaoFooter.tsx          # App footer
β”‚   β”œβ”€β”€ DaoNavbar.tsx          # Navigation bar with wallet connect
β”‚   β”œβ”€β”€ LoanCard.tsx           # Loan request card component
β”‚   β”œβ”€β”€ LoanFundingPanel.tsx   # P2P loan funding interface
β”‚   β”œβ”€β”€ MemberCard.tsx         # Member profile card
β”‚   β”œβ”€β”€ ProposalCard.tsx       # Proposal overview card
β”‚   β”œβ”€β”€ TreasuryCard.tsx       # Treasury metric card
β”‚   └── VotingPanel.tsx        # Voting interface component
β”œβ”€β”€ dashboard/                 # Dashboard page
β”œβ”€β”€ discussion/                # Community forum
β”œβ”€β”€ docs/                      # DAO documentation
β”œβ”€β”€ litepaper/                 # Litepaper page
β”œβ”€β”€ loans/                     # P2P lending module
β”œβ”€β”€ members/                   # Member directory
β”œβ”€β”€ news/                      # News page
β”œβ”€β”€ pitch/                     # Pitch deck
β”œβ”€β”€ portfolio/                 # Post-funding portfolio tracking
β”œβ”€β”€ profile/                   # User profile
β”œβ”€β”€ proposals/                 # Investment proposals
β”œβ”€β”€ signal/                    # Smart money tracker
β”œβ”€β”€ treasury/                  # Treasury management
β”œβ”€β”€ config.ts                  # DAO configuration & constants
β”œβ”€β”€ types.ts                   # TypeScript type definitions
β”œβ”€β”€ layout.tsx                 # Root layout with ThirdwebProvider
β”œβ”€β”€ page.tsx                   # Landing page
└── README.md

βš™οΈ Governance Parameters

Parameter Value
Quorum 30%
Approval Threshold 60%
Voting Period 7 days
Cooldown Period 48 hours
Max Active Proposals 5
Treasury Reserve Ratio 20%
Min Contribution 10 AVAX
Stake Weight 0.6 (60%)
Reputation Weight 0.4 (40%)

πŸ” Wallet Support

RedKey DAO supports multiple wallet connection methods:

  • In-App Wallet β€” Sign in with Google, Apple, or X (Twitter)
  • Core
  • MetaMask
  • Coinbase Wallet
  • WalletConnect
  • Rainbow

Powered by Thirdweb SDK v5 for seamless Web3 authentication.


πŸš€ Getting Started

Prerequisites

  • Node.js 18+
  • npm or yarn
  • Thirdweb Client ID
  • Alchemy API Key
  • Firebase project credentials

Installation

# Clone the repository
git clone https://github.com/your-username/redkey-dao.git
cd redkey-dao

# Install dependencies
npm install

# Set up environment variables
cp .env.example .env.local

Environment Variables

NEXT_PUBLIC_THIRDWEB_CLIENT_ID=your_thirdweb_client_id
NEXT_PUBLIC_ALCHEMY_API_KEY=your_alchemy_api_key
NEXT_PUBLIC_FIREBASE_API_KEY=your_firebase_api_key
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=your_project.firebaseapp.com
NEXT_PUBLIC_FIREBASE_PROJECT_ID=your_project_id

Development

npm run dev

The app will be available at http://localhost:3000/dao.

Build

npm run build

🎨 Design Philosophy

RedKey DAO features a terminal-inspired cyberpunk aesthetic with:

  • Deep black background (#060608) with red accent color palette
  • Monospace typography with uppercase tracking
  • Sharp, non-rounded corners for a rigid, military-grade feel
  • Subtle grid overlay and ambient glow effects
  • Smooth micro-animations powered by Framer Motion
  • Fully responsive design for mobile and desktop

πŸ“Š Credit Tier System

Tier Min Score Icon
πŸ₯‡ Gold 800 Highest trust level
πŸ₯ˆ Silver 600 Established member
πŸ₯‰ Bronze 400 Active participant
βšͺ New 0 New member

πŸ“„ License

This project is open source and available under the MIT License.


πŸ”— Links


Built with ❀️ by the RedKey DAO community on Avalanche

About

A decentralized protocol for community-driven investments and peer-to-peer liquidity.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors