A gamified Web3 reward ecosystem built by Boomchainlab
🔗 Live: slerfearn.boomchainlab.com
The $LERF Rewards Hub is a next-generation Web3 platform that transforms on-chain engagement into tokenized rewards. Powered by the $LERF token and designed with Next.js, the platform gamifies blockchain interactions through missions, staking, trading, and micro-tasks.
- 🎮 Gamified Rewards System — Complete daily/weekly quests to earn $LERF
- 💰 Multi-Chain Staking — Stake across Ethereum, BSC, Arbitrum, Solana
- 🧩 Cooldown Micro-Tasks — Auto-refreshed tasks every 5 minutes
- 🤖 Activity Farming — Integrated tools and bots for on-chain actions
- 🔄 Auto-Staking — Earnings reinvested via smart contracts
- 🌉 Cross-Chain Liquidity — Manage LPs across major networks
- 🦊 Multi-Wallet Connect — MetaMask, Phantom, WalletConnect & more
- 🧑💻 GitHub Rewards — Link contributions to earn tokens
- 📈 Trading Interface — Charts, swap, and orderbook for $LERF
Layer | Stack |
---|---|
Frontend | Next.js 15, TailwindCSS, shadcn/ui |
Web3 | wagmi, viem, WalletConnect, ethers.js |
Backend | Node.js, Next.js API Routes |
Database | PostgreSQL, Drizzle ORM |
Auth | Replit OAuth, Wallet Auth |
CI/CD | Vercel, Railway, Docker |
- Node.js 18+
- PostgreSQL
- WalletConnect & Infura project IDs
git clone https://github.com/BoomchainLabs/slerfearn.git
cd slerfearn
npm install
cp .env.example .env
# Edit .env with your secrets
npm run db:push
npm run dev
# Install dependencies
npm install
# Set up environment variables
cp .env.example .env
# Edit .env with your configuration
# Set up the database
npm run db:push
# Start the development server
npm run dev
Create a .env
file in the root directory and add the following variables:
# Database
DATABASE_URL=postgresql://username:password@localhost:5432/lerf_rewards_hub
# Authentication
NEXTAUTH_SECRET=your_nextauth_secret_key
# Web3 Configuration
WALLET_CONNECT_PROJECT_ID=your_walletconnect_project_id
INFURA_PROJECT_ID=your_infura_project_id
# GitHub OAuth (for GitHub integration)
GITHUB_CLIENT_ID=your_github_oauth_client_id
GITHUB_CLIENT_SECRET=your_github_oauth_client_secret
# Token Contract Addresses
LERF_TOKEN_CONTRACT_ETH=0x...
LERF_TOKEN_CONTRACT_SOLANA=...
LERF_TOKEN_CONTRACT_BSC=0x...
# API Keys
COINGECKO_API_KEY=your_coingecko_api_key
MORALIS_API_KEY=your_moralis_api_key
- Push your code to GitHub
- Connect your repository to Vercel
- Add environment variables in Vercel dashboard
- Deploy automatically
npm run build
vercel --prod
- Connect your GitHub repository to Railway
- Add PostgreSQL service
- Configure environment variables
- Deploy both frontend and backend services
# Build the Docker image
docker build -t lerf-rewards-hub .
# Run with environment variables
docker run -p 3000:3000 --env-file .env lerf-rewards-hub
POST /api/auth/signin
- Sign in with walletPOST /api/auth/signout
- Sign out userGET /api/auth/session
- Get current session
GET /api/rewards/balance
- Get user’s $LERF token balancePOST /api/rewards/claim
- Claim daily/weekly rewardsGET /api/rewards/missions
- Get available missionsPOST /api/rewards/complete-mission
- Complete a mission
POST /api/staking/stake
- Stake tokensPOST /api/staking/unstake
- Unstake tokensGET /api/staking/pools
- Get available staking poolsGET /api/staking/user-stakes
- Get user’s staking positions
GET /api/trading/price
- Get current $LERF token priceGET /api/trading/chart
- Get price chart dataPOST /api/trading/swap
- Execute token swapGET /api/trading/orderbook
- Get order book data
- Ethereum:
0x...
(Replace with actual contract address) - Solana:
...
(Replace with actual program ID) - BSC:
0x...
(Replace with actual contract address) - Arbitrum:
0x...
(Replace with actual contract address)
- Auto-Staking Pool:
0x...
- Multi-Chain Bridge:
0x...
- Rewards Distributor:
0x...
We welcome contributions from the community! Please read our Contributing Guidelines before submitting pull requests.
- Fork the repository
- Create a feature branch:
git checkout -b feature/your-feature
- Make your changes and commit:
git commit -m 'Add your feature'
- Push to the branch:
git push origin feature/your-feature
- Submit a pull request
- Use ESLint and Prettier for code formatting
- Follow React best practices
- Write unit tests for new features
- Document your code with JSDoc comments
# Run unit tests
npm run test
# Run integration tests
npm run test:integration
# Run end-to-end tests
npm run test:e2e
# Generate coverage report
npm run test:coverage
- All smart contract interactions are audited
- User funds are secured through multi-signature wallets
- Regular security assessments and penetration testing
- Bug bounty program available
For security issues, please email: [email protected]
- Launch mainnet version
- Add more staking pools
- Implement cross-chain bridges
- Mobile app development
- NFT rewards integration
- DAO governance features
- Advanced trading tools
- Institutional features
- Layer 2 integration
- DeFi protocol partnerships
- Advanced analytics dashboard
- API marketplace
- Discord: Join our Discord
- Twitter: @BoomchainLab
- Telegram: LERF Community
- GitHub: Boomchainlab
MIT © Boomchainlab
Disclaimer: This project involves cryptocurrency and DeFi protocols. Please do your own research and understand the risks before participating. Never invest more than you can afford to lose.