A revolutionary DeFi platform that enables users to make micro-investments in high-yield vaults with automated yield generation. Built with Solidity smart contracts and a modern Next.js frontend.
MICROMINT is a decentralized finance (DeFi) platform that allows users to:
- Connect Wallet: Users connect their MetaMask wallet to the platform
- Deposit Funds: Users deposit funds into the Global Vault
- Lock Period: Funds are locked for a predetermined period (e.g., 30 days)
- Yield Generation: Vault automatically invests money into DeFi strategies (like AAVE)
- Withdraw Profits: After lock period, users withdraw deposit + yield (minus 8% platform fee)
- DepositVault.sol: Handles user deposits and vault management
- SHMToken.sol: Platform's native token for governance and rewards
- WithdrawHandler.sol: Manages withdrawal processes and fee calculations
- Next.js 15: Modern React framework with TypeScript
- Supabase: Database for transaction tracking and user data
- MetaMask Integration: Seamless wallet connection
- Real-time Portfolio Tracking: Live performance monitoring
- Node.js 18+ installed
- MetaMask wallet
- Git
-
Clone the repository:
git clone https://github.com/000jas/brocode-final.git cd brocode-final -
Install root dependencies:
npm install
-
Install frontend dependencies:
cd frontend npm install -
Start the development server:
npm run dev
-
Open your browser: Navigate to http://localhost:3000
- Connect: User connects MetaMask wallet
- Deposit: User deposits funds into the Global Vault
- Lock: Funds are locked for 30 days (configurable)
- Invest: Vault automatically invests in DeFi protocols (AAVE, Compound, etc.)
- Generate Yield: Earn passive income from DeFi strategies
- Withdraw: After lock period, withdraw principal + yield - 8% platform fee
- Platform Fee: 8% of total yield generated
- Gas Fees: Standard Ethereum network fees
- No Hidden Costs: Transparent fee structure
- Solidity: Smart contract development
- Hardhat: Development framework
- OpenZeppelin: Secure contract libraries
- TypeChain: TypeScript bindings
- Next.js 15: React framework
- TypeScript: Type-safe development
- Tailwind CSS: Utility-first styling
- Framer Motion: Smooth animations
- Supabase: Database and authentication
- Ethers.js: Blockchain interactions
- β Wallet Integration: MetaMask connection
- β Vault Management: Deposit/withdraw funds
- β Yield Generation: Automated DeFi investments
- β Portfolio Tracking: Real-time performance monitoring
- β Transaction History: Complete audit trail
- β Responsive Design: Mobile-first approach
- π Auto-compounding: Reinvest yields for maximum returns
- π Performance Analytics: Detailed yield tracking
- π‘οΈ Security: Audited smart contracts
- β‘ Gas Optimization: Efficient transaction handling
- π¨ Modern UI: Beautiful, intuitive interface
# Compile contracts
npx hardhat compile
# Run tests
npx hardhat test
# Deploy to local network
npx hardhat node
npx hardhat run scripts/deploy.ts --network localhostcd frontend
# Start development server
npm run dev
# Build for production
npm run build
# Run linting
npm run lint- Deploy to testnet (Sepolia/Goerli)
- Verify contracts on Etherscan
- Deploy to mainnet
- Update frontend with contract addresses
- Set up Supabase project
- Configure environment variables
- Deploy to Vercel
- Update contract addresses
Detailed deployment instructions are available in:
frontend/DEPLOYMENT.mdfrontend/DEPLOY_TO_VERCEL.md
The platform invests in various DeFi protocols:
- AAVE: Lending and borrowing protocol
- Compound: Money market protocol
- Yearn Finance: Automated yield farming
- Curve: Stablecoin yield optimization
- Uniswap: Liquidity provision rewards
- Audited Contracts: Professional security audits
- OpenZeppelin: Battle-tested contract libraries
- Multi-sig Wallets: Secure fund management
- Timelock Contracts: Delayed execution for critical functions
- Emergency Pause: Circuit breakers for protection
- Simple deposit process
- Clear yield projections
- Real-time portfolio updates
- Easy withdrawal process
- Comprehensive transaction history
- Well-documented APIs
- TypeScript support
- Modular architecture
- Extensive testing
- Clear deployment guides
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Documentation: Check the
/frontenddirectory for detailed guides - Issues: Open an issue on GitHub
- Discord: Join our community server
- Email: Contact the development team
- β Basic vault functionality
- β MetaMask integration
- β Portfolio tracking
- β Transaction history
- π Multi-vault support
- π Advanced yield strategies
- π Mobile app
- π Governance token
- π Cross-chain support
- π Institutional features
- π Advanced analytics
- π API marketplace
Built with β€οΈ for the DeFi community y Empowering everyone to participate in decentralized finance through micro-investments and automated yield generation.