Somnia DeFi Mini Hackathon Submission
A decentralized bill payment platform with AI assistance, NFT rewards, and community bill splitting
- Team: Solo Developer
- Track: DeFi Protocol
- Demo Video: [VIDEO]
- Live dApp: [Netlify deployment link]
- Pitch Deck: [PITCH DECK]
FEEEZ revolutionizes bill payments by bringing them on-chain with crypto, while adding unique value through:
- Direct Crypto Bill Payments - Pay utilities, rent, subscriptions with stablecoins
- AI Financial Assistant - Smart budgeting advice and payment predictions
- NFT Loyalty Rewards - Earn NFTs for consistent bill payments
- Community Bill Pools - Split shared expenses with friends/roommates
- Escrow Protection - 3-day escrow period ensures payment security
- One-time & Recurring Bills: Support for both payment types
- Auto-Pay: Set-and-forget bill automation
- Escrow System: Secure payment release mechanism
- Payment History: Complete transaction tracking
- AI Assistant: Analyzes spending patterns and suggests optimizations
- NFT Rewards: 3-tier reward system (Bronze โ Diamond)
- Bill Pools: Collaborative payment splitting
- Gasless Transactions: Leveraging Somnia's efficiency
BillPayment.sol - Core payment logic & escrow
NFTRewards.sol - ERC-721 loyalty rewards
BillPool.sol - Community bill splitting
MockUSDC.sol - Testing stablecoin
React.js - User interface
Ethers.js - Blockchain interaction
Web3Modal - Wallet connectivity
Tailwind CSS - Modern styling
OpenAI API - Financial advice generation
Pattern Analysis - Payment behavior insights
Smart Suggestions - Optimal payment timing
| Contract | Address | Purpose |
|---------- |--------- --------- |------------------ |
| MockUSDC | 0x... | Test stablecoin |
| BillPayment | 0x4937c72aEF555aDF2B8903bbA2173B25f6155FF0 | Core payment system |
| NFTRewards | 0xd8e2bFfA161636b14925F792d62cCA2F1C835b07 | Loyalty NFT system |
| BillPool | 0x8fF75CD47CBeCccb279dAb8bbF724A0D5Fa30f08 | Bill splitting pools |
- Visit Live dApp: [Netlify Link]
- Connect Wallet: Add Somnia Testnet to MetaMask
- Get Test Tokens: Use built-in faucet or contact us
- Try Features:
- Create a bill
- Make a payment
- Join a bill pool
- Earn NFT rewards
# Clone repository
git clone https://github.com/aberthecreator/feeez-dapp.git
cd feeez-dapp
# Install dependencies
npm install
# Set up environment
cp .env.example .env
# Add your private key and API keys
# Deploy to testnet
npx hardhat run scripts/quickDeploy.js --network somnia-testnet
# Start frontend
cd src && npm start- Connect Wallet โ User connects MetaMask to Somnia
- Create Bill โ Set up electricity bill for $120, due in 15 days
- AI Assistant โ Get spending insights and payment suggestions
- Pay Bill โ Execute payment with 3-day escrow protection
- Earn Rewards โ Receive Bronze NFT after 5 payments
- Join Pool โ Split $300 rent with 2 roommates
- Track History โ View all payments and upcoming bills
User โ Frontend โ Smart Contract โ Blockchain โ Confirmation
โ
AI Analysis โ Recommendations โ Better Financial Health
โ
NFT Minting โ Loyalty Rewards โ User Retention
- Traditional bill payments are centralized and expensive
- No financial insights or spending optimization
- Limited payment flexibility for shared expenses
- No rewards for consistent bill payment behavior
- Decentralized: Direct crypto payments, no intermediaries
- Intelligent: AI-powered financial assistance
- Collaborative: Community bill splitting features
- Rewarding: NFT loyalty system incentivizes good payment habits
- Analyzes payment patterns to predict upcoming bills
- Suggests optimal payment timing based on cash flow
- Recommends budget adjustments for better financial health
- 5-tier NFT reward system encourages consistent payments
- Visual progress tracking toward next reward tier
- Social features for sharing payment achievements
- Create pools for shared expenses (rent, utilities, group purchases)
- Transparent contribution tracking
- Automatic refunds for cancelled pools
- Takes advantage of Somnia's high throughput
- Near-instant payment confirmations
- Minimal gas fees for frequent transactions
- ReentrancyGuard: Protection against reentrancy attacks
- Pausable: Emergency pause functionality
- Ownable: Proper access control
- Upgradeable: Future improvement capability
- 3-day escrow period for payment disputes
- Multi-signature requirements for high-value transactions
- Input validation and error handling
- Comprehensive test coverage (>95%)
- Efficient data structures
- Batch operations where possible
- Strategic use of events for data retrieval
- Minimal storage writes
Contract Security
โ Reentrancy protection works
โ Access control enforced
โ Pause functionality operational
โ Input validation prevents exploits
Core Functionality
โ Bill creation and payments
โ Escrow release mechanism
โ Recurring payment automation
โ NFT reward distribution
Edge Cases
โ Insufficient balance handling
โ Expired payment windows
โ Pool over-funding prevention
โ Contract pause scenarios
Gas Usage
โ All functions under gas limits
โ Optimized storage usage
โ Efficient event emission- Save Money: Eliminate payment processing fees
- Stay Organized: Never miss bill payments with AI reminders
- Earn Rewards: Get NFTs for good payment behavior
- Split Easily: Simplify shared expense management
- Increase DeFi Adoption: Practical use case for crypto payments
- Drive Somnia Usage: High-frequency transaction patterns
- Create Network Effects: Community features encourage user growth
- Financial Inclusion: Accessible to anyone with a wallet
- โ Core payment functionality
- โ Basic AI integration
- โ NFT reward system
- โ Somnia testnet deployment
- ๐ Mainnet deployment
- ๐ Mobile app development
- ๐ Advanced AI features
- ๐ Payment processor integrations
- โณ Cross-chain compatibility
- โณ Institutional partnerships
- โณ Advanced DeFi integrations
- โณ Global regulatory compliance
- Clean Architecture: Well-structured, maintainable codebase
- Comprehensive Testing: Extensive test coverage with edge cases
- Security First: Multiple layers of protection
- Performance Optimized: Built for Somnia's capabilities
- Unique Value Proposition: First crypto bill payment platform with AI
- Real-World Utility: Solves actual user problems
- Network Effects: Community features drive adoption
- Scalable Design: Ready for mass market deployment
- Large Addressable Market: Everyone pays bills
- Strong Unit Economics: Clear revenue model
- Viral Growth Potential: Referral incentives built-in
- Ecosystem Benefits: Drives Somnia network activity
Solo Developer Submission
- GitHub: @AberTheCreator
- Email: [email protected]
- Architecture Diagram: [Link to diagram]
- Smart Contract Verification: [Somnia Explorer Links]
- API Documentation:
/docs/API.md - Deployment Guide:
/docs/DEPLOYMENT.md - Demo Video: [YouTube Link]
- Pitch Deck: [PITCH DECK]
Built with โค๏ธ for the Somnia DeFi Mini Hackathon
"Making bill payments as easy as sending a text, as secure as a vault, and as rewarding as a game."