Download the Mezo Earn Whitepaper (PDF) — For a comprehensive overview of the economic incentive framework, dual-token model, and tokenomics.
Overview
Mezo Earn provides:- Decentralized Exchange (DEX): Automated market maker for token swaps
- Gauge System: Voting and reward distribution mechanism
- Solidly-inspired Architecture: Efficient ve-tokenomics and liquidity management
Repository Structure
The Mezo Earn repository contains:- solidity/: Smart contracts written in Solidity
- dapp/: Frontend application for interacting with contracts
- infrastructure/: Cloudflare-based infrastructure components
- .github/workflows/: CI/CD automation
Development Setup
Prerequisites
- Node.js (check
.nvmrcfor exact version) - pnpm package manager
- Git
- Foundry (for smart contract development)
Installation
Testing Pre-commit Hooks
Smart Contract Development
Contract Architecture
Mezo Earn contracts are organized in thesolidity/ directory. Key components include:
- Core DEX Contracts: Automated market maker functionality
- Gauge Contracts: Voting and reward distribution
- Token Contracts: ERC20 implementations
- Utility Contracts: Helper functions and libraries
Development Workflow
Compiling Contracts
Testing
Frontend Development
Thedapp/ directory contains the frontend application for interacting with Mezo Earn contracts.
Key Features
- Swap Interface: Token swapping functionality
- Liquidity Management: Add/remove liquidity from pools
- Gauge Voting: Participate in gauge voting and rewards
- Portfolio Management: Track positions and rewards
Development Commands
Integration Guide
Connecting to Mezo Earn Contracts
Example Integration
Swapping Tokens
Adding Liquidity
Deployment
Testnet Deployment
Mainnet Deployment
Monitoring and Maintenance
Contract Monitoring
- Set up event monitoring for critical functions
- Monitor gas usage and optimization opportunities
- Track contract interactions and user activity
Security Considerations
- Regular security audits
- Access control management
- Emergency pause mechanisms
- Upgrade procedures
Additional Resources
- Mezo Earn Repository - Main repository
- Solidly Documentation - Solidly protocol documentation
- Mezo Network Documentation - Network configuration
- Contract Verification Guide - Contract verification
For detailed architecture, tokenomics, and protocol mechanics, refer to the Mezo Earn repository README and documentation.
Support
For development support:- Join the Mezo Discord
- Check the GitHub Issues
- Review the FAQ