Piggy Wallet: Empowering Youth Financial Resilience in Hyper-inflationary Economies
In regions battling extreme inflation, Piggy Wallet emerges as a revolutionary solution, leveraging blockchain technology to transform how families save and educate their children about finance.
Key Features:
- Effortless Smart Wallet Creation:
- Simple email-based signup for both parents and children
- No need for complex wallet setups or understanding of crypto technicalities
- Secure, blockchain-based accounts accessible through user-friendly interfaces
- Age-Adaptive Savings Lock:
- Savings automatically locked until the child turns 18
- Based on the child's birthdate provided during setup
- Parental override option for early withdrawals in case of emergencies
- Intelligent Fund Management:
- Automatic conversion of any received cryptocurrency to USDC stablecoin
- Protection against local currency devaluation
- Easy deposits via QR codes and shareable payment links
- Customizable Saving Goals:
- Create multiple savings objectives (e.g., "New Bike", "College Fund")
- Smart allocation of incoming funds across different goals
- Real-time tracking and visual representation of progress
- Task-Based Reward System:
- Parents set up tasks with associated crypto rewards
- Children earn additional savings by completing chores or responsibilities
- Fosters positive habits while building financial assets
- Age-Adjusted AI Financial Advisor - "Piggy Bot":
- Personalized financial education tailored to the child's age
- Natural language interface for easy interaction (both with text and audio)
- Covers both traditional finance and crypto topics
- Adapts complexity and content based on the child's age (e.g., "Talk to me like I'm 10 years old")
- Helps children understand the importance of inflation-resistant savings
- Family Financial Dashboard:
- Comprehensive overview of all family members' savings and goals
- Promotes transparency and collaborative financial planning
- Seamless User Experience:
- Intuitive and friendly interface designed for both children and adults
- Gamified elements to make saving engaging and fun
Why Piggy Wallet Stands Out:
- Addresses a critical need in hyper-inflationary economies
- Combines financial education with practical savings tools
- Leverages blockchain for security and transparency without technical barriers
- Adapts to each child's age for personalized learning and interaction
- Empowers families to take control of their financial future
- Potential for significant impact in emerging markets
Our Vision:
Piggy Wallet aims to create a generation of financially literate and economically resilient youth in challenging economies. We're not just building an app – we're fostering a movement towards financial empowerment and stability.
By providing tools that are secure, educational, and easy to use, Piggy Wallet is revolutionizing how families save, learn, and thrive in the face of economic uncertainty. Join us in this innovative journey to secure not just savings, but futures.
With Piggy Wallet, we're turning financial challenges into opportunities for growth, learning, and long-term prosperity. Together, we can build a more financially resilient world, one young saver at a time.
Link to our Pitch & Demo: https://www.loom.com/share/f97c3fb5f1e342269547280569b56dd4?sid=3dffdd65-e119-4f7d-8c9a-b2112e7f748d
How Piggy Wallet is Made:
Core Technologies:
- ERC-7579 Safe Smart Accounts: Provides the framework for our modular Smart Wallet
- Module Kit by Rhinestone: Enables us to develop custom features like time-locks and auto token conversions.
- Solidity: Smart Contracts.
- React.js & Next.js & Tailwind.css & wagmi: Frontend.
- Uniswap V4 Pool Manager: For swaps made through our token conversion module.
- OpenAI GPT & VoiceFlow: Drives our AI-powered financial education bot.
- Pimlico Paymaster: Enables gasless transactions for improved user experience.
Architecture:
- Implementations of ERC4337:
- Extending Base Smart Wallet
- ERC-7579 Safe Smart Accounts
- Time-Lock of Savings:
- Utilizes Module Kit by Rhinestone to implement time-locking mechanism
- For both implementations, multi-ownership is required
- 1 owner is designated as a “child” owner, which is unable to send any UserOperation until timelock has passed
- Timelock created based on child's birthdate
- Enables parental override functionality for emergency withdrawals
- Swap to USDC:
- Integrates Uniswap V4 Pool Manager for efficient, decentralized token swaps
- Requires external transactions to be called into the Smart Wallet, ensures that fees are abstracted away from user
- Savings Goals Setup:
- Creation and management of multiple savings objectives enabled through Safe Smart Account metadata
- Tasks Bounties Setup:
- Another custom module powered by Module Kit by Rhinestone
- Enables parents to create tasks and automatically distribute rewards upon completion
- Savings Tracking:
- Use USDC balance of Smart Account
- AI Financial Advisor:
- Leverages OpenAI's GPT model for natural language processing and financial advice generation
- Integrates VoiceFlow for conversational UI and multi-modal interactions
- Custom prompt engineering to adjust complexity based on child's age
- Gasless Fee Payments:
- Pimlico Paymaster for sponsoring gas fees
- Abstracts away gas complexities, improving UX for crypto newcomers
Frontend Implementation:
- permissionless.js used to create new Safe Smart Wallet
Notable Innovations:
- No-code Smart Wallet Creation: By creating our own plugins and allowing parents to choose which ones to use for their child, we have essentially created a no-code platform to design your own Smart Wallet.
- Age-Adaptive AI Bot: Our integration of OpenAI and VoiceFlow creates a unique, age-appropriate financial education experience, adjusting complexity based on the child's age stored in the smart account.
- Seamless Token Management: The combination of Uniswap V4 Pool Manager and our custom swap module ensures that users always have their funds in stable USDC, protecting against volatility.
- Frictionless User Experience: By utilizing Base Smart Wallet for account creation and Pimlico Paymaster for gas fees, we've created an onboarding and usage experience that feels as simple as using a traditional app. All blockchain interactions are abstracted away.
Challenges and Solutions:
- Adding Features to Smart Wallets: Ran into many issues (unhelpful RPC errors, lack of documentation) deploying a custom Base Smart Wallet, and decided to switch to Safe Smart Wallets.
- Uniswap v4 integration: Lack of public documentation and examples were outdated. Fortunately, there were employees readily available to help.