Inspiration
DeFi is incredibly powerful, but most of the begineers have always felt it was too complex, risky . I wanted to create something that would let people explore DeFi in a safe, fun, and interactive way without needing crypto, a wallet, or coding experience.
That’s what inspired me to build LearnFi — a gamified, AI-powered playground for learning DeFi concepts through hands-on simulations using the Compound Protocol.
What it does
LearnFi is an educational simulator that allows users to:
- Supply and borrow assets like DAI, USDC, ETH, and WBTC using real Compound data.
- Get AI-powered explanations of complex DeFi terms in simple language using Groq and Tavily APIs.
- Run advanced simulations such as market crash scenarios and historical price replays to understand real-world risks.
- Earn badges, rewards, and visual feedback to make learning fun and gamified.
- Explore real-time market data and understand how interest rates and collateral factors affect their position.
How I built it
- Frontend: React.js
- Styling: Tailwind CSS
- Animations: GSAP (GreenSock)
- DeFi Integration: Compound.js SDK
- AI Integration: Groq API , Tavily API
- Memory: localStorage
Challenges I ran into
- Understanding the internal mechanics of Compound, especially collateral factors, health factors, and interest rate models.
- Balancing gamification with accuracy — I didn’t want to oversimplify DeFi but also wanted to keep it beginner-friendly.
- Handling real-time market changes in a meaningful way within simulations.
- Integrating AI explanations smoothly into the user experience without overwhelming or interrupting learning flow.
Accomplishments that I'm proud of
- Built a full working simulation of DeFi supply/borrow mechanics using actual Compound logic.
- Designed an engaging gamified interface with visual animations using GSAP.
- Integrated AI-based learning support, making technical concepts easier to understand.
- Created a platform where users can safely explore DeFi with no crypto or wallet required.
What I learned
- A deep understanding of how DeFi protocols like Compound function .
- How to structure interactive, beginner-friendly learning experiences using gamification and AI.
- Working with DeFi SDKs, integrating APIs, and managing complex state logic in React.
- The power of combining education + simulation to break down complex tech.
What's next for LearnFi
- Expand beyond Compound — adding support for other DeFi platforms .
- Launch personalized learning tracks based on user behavior and progress.
- Introduce real-time DeFi quests and learning missions.
- Add certification badges to reward users for mastering core concepts.
I believe LearnFi can be more than a demo — it can be a real entry point for the next wave of DeFi users.
Log in or sign up for Devpost to join the conversation.