Skip to content

Latest commit

 

History

History
359 lines (253 loc) · 9.7 KB

File metadata and controls

359 lines (253 loc) · 9.7 KB

⚡ MEVRebels Protocol

Democratizing MEV on Solana through DAO-governed, community-owned infrastructure

Stars Solana TypeScript

🏆 Superteam Cypherpunk Hackathon 2025 | 🌏 Built in Indonesia | 🕌 Built with Ihsan

📖 Documentation🎥 Demo🏛️ RECTOR LABS


🎯 The Problem

MEV is extractive and unfair.

Maximal Extractable Value (MEV) on Solana generates billions in value—but only sophisticated operators capture it. Regular users and validators are left out, while a small elite profits from:

  • 🏦 Front-running trades
  • 🔄 Sandwich attacks
  • 💰 Arbitrage opportunities
  • 🎯 Liquidation captures

Result: Wealth concentration, unfair markets, and centralized power in a supposedly decentralized ecosystem.


✨ The Solution: MEVRebels Protocol

Transform MEV from extractive to equitable.

MEVRebels is a DAO-governed protocol that redistributes MEV profits to the community through:

  • 🏛️ DAO Governance - Community decides profit distribution via voting
  • 💎 Profit Sharing - MEV earnings redistributed to token holders
  • 🔓 Open Infrastructure - Anyone can run MEV strategies through the protocol
  • 📊 Transparent Operations - All MEV captured on-chain, fully auditable
  • 🛡️ Validator Alignment - Share profits with validators who support the protocol

Tagline: "MEV by the people, for the people."


🛠️ Tech Stack

Blockchain:

  • Solana (mainnet-beta)
  • Anchor Framework 0.29+
  • SPL Token Program
  • Metaplex Token Metadata

Smart Contracts:

  • Rust + Anchor
  • MEV capture contracts
  • DAO governance contracts
  • Profit distribution contracts

Frontend:

  • TypeScript + React
  • Next.js 14
  • TailwindCSS
  • Solana Web3.js + Wallet Adapter

Backend Services:

  • MEV detection bots
  • Arbitrage execution engine
  • Transaction monitoring

Infrastructure:

  • Vercel (frontend)
  • Dedicated RPC nodes
  • Real-time WebSocket feeds

🚀 Quick Start

Prerequisites

- Node.js 18+ or Bun
- Solana CLI 1.18+
- Anchor 0.29+
- Phantom/Solflare wallet

Installation

# Clone the repository
git clone https://github.com/RECTOR-LABS/mevrebels-protocol.git
cd mevrebels-protocol

# Install dependencies
npm install
# or
bun install

# Set up environment
cp .env.example .env
# Add your RPC URL and wallet keypair

# Build smart contracts
cd programs/mevrebels
anchor build

# Deploy to devnet
anchor deploy --provider.cluster devnet

# Run frontend
cd ../../app
npm run dev

Configuration

# .env.example
SOLANA_RPC_URL=https://api.mainnet-beta.solana.com
ANCHOR_WALLET=~/.config/solana/id.json
DAO_PROGRAM_ID=<your_deployed_program_id>

📖 How It Works

1. MEV Capture

MEVRebels Bots → Detect Opportunities → Execute Strategies → Capture Profit
  • Monitor mempool for arbitrage, liquidations, sandwich opportunities
  • Execute profitable trades using protocol-owned capital
  • All profits flow to DAO treasury

2. DAO Governance

Token Holders → Propose Distribution → Vote → Execute On-Chain
  • $MEVR token holders vote on profit distribution
  • Proposals executed automatically via smart contracts
  • Quadratic voting prevents whale dominance

3. Profit Distribution

Treasury → Distribution Contract → Token Holders + Validators + Dev Fund
  • 70% to $MEVR token holders (pro-rata)
  • 20% to supporting validators
  • 10% to development fund

4. Transparency

On-Chain Events → Real-time Dashboard → Public Auditing
  • Every MEV capture recorded on-chain
  • Live dashboard shows profits, distributions, governance
  • Fully auditable by anyone

🎨 Key Features

For Users

  • 💰 Passive MEV Income - Hold $MEVR, earn MEV profits
  • 🏛️ Governance Rights - Vote on distribution strategy
  • 📊 Dashboard - Track earnings, proposals, and DAO stats
  • 🔓 Permissionless - No KYC, no gatekeeping

For Validators

  • 💎 Revenue Share - Earn 20% of MEV captured
  • 🤝 Aligned Incentives - Support fair MEV distribution
  • 📈 Increased APY - MEV share boosts validator returns

For Developers

  • 🛠️ Open SDK - Build MEV strategies on the protocol
  • 📚 Documentation - Comprehensive guides and examples
  • 💰 Dev Fund - 10% of profits fund open-source work

🏆 Hackathon Context

Competition: Superteam Cypherpunk Hackathon 2025 Track: DeFi Innovation Dates: October 2025 Team: RECTOR LABS Result: Featured project (4 ⭐)

Challenge Prompt

Build a protocol that makes DeFi more equitable and decentralized on Solana. Challenge power dynamics and create fair systems.

Our Approach

Problem Selection: MEV is the elephant in the room—billions in hidden value extraction that nobody talks about. We chose to confront it directly.

Technical Innovation:

  • First DAO-governed MEV protocol on Solana
  • On-chain profit distribution (no trust needed)
  • Quadratic voting prevents plutocracy
  • Validator alignment through profit sharing

Philosophical Stance: MEV isn't going away—but it doesn't have to be extractive. We transform it from a tool of the elite into a public utility. Islamic principles applied: wealth redistribution, fairness, and communal benefit.


🧪 Testing

# Run smart contract tests
cd programs/mevrebels
anchor test

# Run frontend tests
cd ../../app
npm run test

# Integration tests
npm run test:integration

# Test coverage
npm run test:coverage

📸 Screenshots

Coming soon: Dashboard screenshots, governance UI, profit distribution interface


🌟 Highlights

What makes MEVRebels special:

  • 💡 First of its kind - No other DAO-governed MEV protocol on Solana
  • 🏛️ True decentralization - Community controls everything via governance
  • 📊 Full transparency - Every action recorded on-chain
  • 🔓 Permissionless participation - Anyone can join, no gatekeeping
  • 🕌 Values-driven - Built with Islamic principles of fairness (Ihsan, Amanah)

Technical Achievements:

  • Complex multi-contract architecture (MEV capture + DAO + distribution)
  • Real-time MEV detection with sub-second execution
  • Quadratic voting implementation on Solana
  • Gas-optimized profit distribution (handles 1000+ holders)

Lessons Learned:

  • MEV detection requires deep Solana transaction understanding
  • DAO governance UX is critical for engagement
  • Profit distribution at scale needs careful gas optimization
  • Community alignment is harder than technical implementation

🗺️ Roadmap

Phase 1: Hackathon MVP ✅ (Oct 2025)

  • Core smart contracts (MEV, DAO, distribution)
  • Basic MEV capture strategies (arbitrage)
  • Frontend dashboard
  • Governance voting UI

Phase 2: Testnet Launch 🚧 (Nov-Dec 2025)

  • Extended testing on devnet
  • Security audit (Sec3, OtterSec)
  • Community testnet (limited users)
  • Strategy expansion (liquidations, sandwich)

Phase 3: Mainnet Alpha 📋 (Q1 2026)

  • Mainnet deployment with safeguards
  • Limited capital ($50k treasury)
  • 100 early adopters
  • Monitor and iterate

Phase 4: Full Launch 📋 (Q2 2026)

  • Open to public
  • Validator partnership program
  • MEV strategy marketplace
  • Cross-chain expansion (EVM chains)

🤝 Contributing

Built by RECTOR LABS with Ihsan (excellence) and Amanah (responsibility).

We need help with:

  • 🧮 MEV strategy development (arbitrage, liquidations)
  • 🎨 UI/UX improvements (dashboard, governance)
  • 📖 Documentation and tutorials
  • 🔐 Security auditing and testing
  • 🌍 Community building and growth

How to contribute:

  1. Fork the repository
  2. Create feature branch (git checkout -b feature/NewStrategy)
  3. Commit changes (git commit -m 'feat: Add NewStrategy')
  4. Push to branch (git push origin feature/NewStrategy)
  5. Open Pull Request

📄 License

MIT License - see LICENSE file


🙏 Acknowledgments

  • Superteam - For hosting Cypherpunk Hackathon 2025
  • Solana Foundation - For building the fastest blockchain
  • Jito Labs - For pioneering MEV research on Solana
  • Flashbots - For MEV transparency on Ethereum
  • RECTOR LABS community - For feedback and support

🔗 Links


Built with Bismillah 🕌

"And cooperate in righteousness and piety" - Quran 5:2

May this protocol bring fairness to DeFi. Aamiin.


🏛️ RECTOR LABS | Building for Eternity | 2025

Solana TypeScript Anchor DeFi