A DeFi platform that combines automated DCA trading with virtual pet care.
Petfolio Guardian represents a paradigm shift in DeFi by making automated trading emotionally engaging and socially rewarding. It's not just another DCA platform - it's a complete ecosystem that combines the best of DeFi technology with gamification psychology to create sustainable, long-term trading behaviour.
The platform's unique approach addresses the fundamental challenge of user retention in DeFi while providing genuine financial value through sophisticated automated trading strategies. By making trading fun, social, and rewarding, Petfolio Guardian has the potential to bring DeFi to a much broader audience while helping users build wealth through consistent, emotion-free investment strategies.
How It Works - The Complete Flow
Smart Contract Architecture The platform is built on a sophisticated smart contract system: TwapDcaHook: A custom hook that implements 1inch's interface for time-weighted recurring fills Permit2: Gas-efficient token approvals and transfers Keeper Bots: Automated execution of DCA orders at specified intervals
DCA Strategy Implementation Users can set up various DCA strategies: Regular DCA: Standard dollar-cost averaging with custom intervals DCA Yield: Complex yield strategies with 13 different options DCA to Friend: Social trading where you help others invest Manual Swaps: One-time trades for immediate pet feeding
Pet Happiness System Your hippo's health (0-10 scale) is directly tied to trading activity: DCA Yield: +3.0 health (highest reward) DCA to Friend: +2.0 health (social bonus) Regular DCA: +1.0 health (standard) Manual Swap: +0.5 health (basic) Decay: -0.5 health every 6 hours without activity
Technical Infrastructure Frontend Architecture React + TypeScript: Modern, type-safe development Tailwind CSS: Responsive, beautiful UI Wagmi: Seamless wallet integration React Query: Efficient API state management
API Integration The platform integrates with 1inch's complete API suite: Quote API (v6.0): Real-time swap quotes and price estimates Swap API (v6.0): Executable swap transactions Token API (v1.3): Token metadata, logos, and lists Balance API (v1.2): User token balances across networks Price API (v1.1): Live token prices in USD Gas Price API (v1.4): Current gas prices for optimisation Approval APIs (v6.1): Token allowances and approvals Limit Order SDK: Order creation and management
Data Layer Supabase: PostgreSQL database for user data, feeds, and health records Real-time updates: Live portfolio tracking and health monitoring
Unique Value Propositions
Future Roadmap Phase 2 Features Pet Evolution: Hippos can evolve based on trading performance Community Features: Pet parks, trading competitions, leaderboards Advanced Strategies: Options trading, yield farming integration Mobile App: Native iOS/Android applications Cross-chain Support: Expansion to Polygon, Arbitrum, Optimism