project screenshot 1
project screenshot 2
project screenshot 3

Petfolio Guardian

A DeFi platform that combines automated DCA trading with virtual pet care.

Petfolio Guardian

Created At

Unite Defi

Project Description

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's Made

How It Works - The Complete Flow

  1. 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

  2. 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

  3. 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

  1. Gamified Trading Unlike traditional DeFi platforms, Petfolio Guardian makes trading emotionally engaging. Users care about their hippo's happiness, which drives consistent trading behaviour.
  2. Automated Excellence The keeper bot system ensures DCA strategies execute reliably without manual intervention, eliminating human error and emotional decisions.
  3. Social Trading The "DCA to Friend" feature introduces a social element, allowing users to help others invest while earning health rewards.

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

background image mobile

Join the mailing list

Get the latest news and updates