Strata is a decentralized finance (DeFi) platform that allows users to deposit cryptocurrency into automated vaults that generate yield through the Aave protocol. Built on Ethereum Sepolia testnet, Strata provides a secure, transparent, and user-friendly interface for earning passive income on digital assets.
- ๐ Secure Vault Contracts: Audited smart contracts with built-in security
- ๐ฐ Real Yield Generation: Integration with Aave V3 protocol for competitive yields
- ๐๏ธ User-Friendly Interface: Modern React frontend with real-time balance tracking
- ๐ Portfolio Dashboard: Track deposits, yields, and total portfolio value
- ๐ Flexible Withdrawals: Withdraw principal plus accrued yield anytime
- ๐งช Testnet Ready: Fully functional on Sepolia testnet with no real money required
- Backend: Solidity smart contracts with Hardhat development framework
- Frontend: React + Vite with ethers.js for blockchain interaction
- Blockchain: Ethereum Sepolia testnet with Aave V3 integration
- Infrastructure: Alchemy RPC endpoints for reliable blockchain access
- Node.js 16+ installed
- MetaMask browser extension
- Sepolia ETH for gas fees (get from faucet)
- Clone & Install
git clone <repository-url>
cd Strata- Backend Setup
cd Backend
npm install- Frontend Setup
cd Frontend
npm install-
Configure Environment
- Create
.envin Backend directory - Add your private key and RPC URL
- Create
-
Deploy Contracts
cd Backend
node scripts/deploy-real-aave.js- Start Frontend
cd Frontend
npm run dev- Access Application
- Open
http://localhost:5174 - Connect wallet and start earning!
- Open
- DAI (
0xFF34B3d4Aee8ddCd6F9AFFFB6Fe49bD371b8a357)- โ Fully integrated with Aave Sepolia
- โ Available via Aave faucet
- โ Stablecoin with reliable yields
- WETH: Wrapped Ethereum for higher yields
- USDT: Tether for stablecoin diversity
- WBTC: Wrapped Bitcoin for crypto exposure
See HOW_TO_GET_TOKENS.md for detailed instructions on obtaining test tokens.
- โ Secure Deposits: Non-custodial vault with user-controlled funds
- โ Real Yield: Automatic supply to Aave V3 protocol
- โ Interest Tracking: Real-time yield calculation and display
- โ Flexible Withdrawals: Withdraw principal + accrued yield anytime
- โ Transparent: All transactions visible on blockchain
- โ Gas Optimized: Efficient contract interactions
- โ Reentrancy Protection: Prevents recursive attacks
- โ Access Control: Proper ownership and permission management
- โ Input Validation: Comprehensive error handling
- โ Emergency Controls: Safe withdrawal mechanisms
- Connect Wallet: Secure MetaMask integration
- Select Token: Choose from supported assets
- Enter Amount: Specify deposit amount
- Approve Token: Grant vault spending permission
- Confirm Deposit: Execute transaction
- Track Yield: Monitor real-time earnings
- Portfolio Overview: Total value and earnings
- Transaction History: Complete deposit/withdrawal record
- Yield Analytics: Real-time APY and earnings breakdown
- Wallet Management: Multi-token balance display
- VaultV2RealAave.sol: Main vault contract with Aave integration
- IPool Interface: Aave V3 pool interaction
- ERC20 Integration: Standard token compatibility
- Hardhat Framework: Development and deployment
- React 18: Modern component-based UI
- Vite: Fast development and build tool
- ethers.js: Ethereum blockchain interaction
- Tailwind CSS: Responsive design system
- MetaMask Integration: Wallet connectivity
- Network: Ethereum Sepolia Testnet
- Protocol: Aave V3 Lending Protocol
- RPC: Alchemy Infrastructure
- Gas: Optimized transaction costs
Create .env file in Backend directory:
SEPOLIA_URL=https://eth-sepolia.g.alchemy.com/v2/YOUR_ALCHEMY_KEY
PRIVATE_KEY=your_private_key_herecd Backend
node scripts/deploy-real-aave.jsAfter deployment, update VAULT_V2_ADDRESS in Frontend/blockchain/contracts.js with the deployed vault address.
cd Frontend
npm installnpm run devOpen http://localhost:5174 in your browser.
- Unit Tests: Smart contract functions
- Integration Tests: Frontend-backend interaction
- E2E Tests: Complete user flows
- Security Tests: Vulnerability scanning
- Hardhat Console: Contract interaction testing
- Etherscan: Transaction verification
- MetaMask: Wallet debugging
- Browser DevTools: Frontend inspection
HOW_TO_GET_TOKENS.md: Complete token acquisition guideCONTRACTS.md: Smart contract documentationAPI.md: Frontend API reference
- Aave Documentation: https://docs.aave.com/
- Sepolia Faucet: https://sepolia.faucet.aave.com/
- Sepolia Explorer: https://sepolia.etherscan.io/
- No Real Money: All transactions use testnet tokens
- Free Testing: Tokens available from faucets
- Educational Purpose: Learn DeFi concepts safely
- Never Share Private Keys: Keep your keys secure
- Verify Transactions: Always check MetaMask prompts
- Use Testnet: Never use mainnet without proper testing
- Sepolia ETH Required: Need test ETH for transactions
- Gas Optimization: Contracts designed for efficiency
- Fee Estimation: Built-in gas calculation
- Fork the repository
- Create feature branch
- Make changes and test
- Submit pull request
- Code review and merge
- Use GitHub Issues for bug reports
- Include steps to reproduce
- Provide environment details
- Documentation: Check all
.mdfiles first - Issues: Search existing GitHub issues
- Community: Join our Discord/Telegram
- Direct: Contact development team
- GitHub Issues: For technical problems
- Discord: For community support
- Email: For business inquiries
This project is licensed under the MIT License - see the LICENSE file for details.
- Aave Protocol: For the lending infrastructure
- Ethereum Foundation: For Sepolia testnet
- OpenZeppelin: For secure contract libraries
- Hardhat Team: For development framework
- React Community: For frontend tools
Last updated: February 2026 Version: 2.0 - Real Aave Integration Status: Production Ready (Testnet)