hackquest logo

AutoPilot DeFi

AutoPilot DeFi: Next-gen automation with ERC-7715. Features: spending caps, 30-day expiry, pause/resume, real-time analytics, and 30% gas savings for secure portfolio rebalancing.

ビデオ

テックスタック

React
Web3
Solidity
Ethers
Python
Node
FastAPI
Next

説明

AutoPilot DeFi- Permission Based DeFi Automation
AutoPilot DeFi is a secure, user-controlled DeFi automation platform that eliminates unlimited token approvals and manual portfolio management by introducing permission-based execution using MetaMask Smart Accounts and real-time analytics powered by Envio.

Problem
Traditional DeFi automation suffers from three major issues:

  • Unlimited ERC-20 approvals that expose users to exploits

  • Manual, time-consuming portfolio rebalancing

  • Poor visibility into gas usage, execution history, and performance.
    Users are forced to choose between convenience and security — which should never be the case in DeFi.

    Solution

    AutoPilot DeFi solves this by combining secure automation with scoped permissions:

    • Users grant limited, expirable, and revocable permissions instead of unlimited approvals

    • Smart contracts automatically rebalance portfolios within those limits

    • Users retain full control at all times

    • Envio provides real-time visibility into balances, transactions, and gas costs

      Key Innovation


      Replacing unlimited approvals with permission-based execution

      AutoPilot DeFi leverages MetaMask Smart Accounts (Account Abstraction) to enable:

      • Spend caps (maximum allowed amount)

      • Time-based expiry

      • Instant revocation or pause

      • Single approval for recurring automation

      This dramatically improves both security and user experience.

      How It Works


      1. User connects their MetaMask Smart Account

      2. User grants a scoped permission (amount + duration)

      3. Smart contract executes automatic rebalancing

      4. On-chain events are indexed by Envio

      5. User monitors everything via a real-time analytics dashboard

      Every action is transparent, auditable, and user-controlled.

      Envio-Powered Analytics


      Using Envio indexing and GraphQL:

      • Live portfolio balances (ETH / USDC)

      • Complete rebalance transaction history

      • Gas usage tracking and optimization insights

      • Indexed smart-contract events in real time

        Technical Stack

        • Frontend: React + Tailwind CSS

        • Backend: FastAPI

        • Smart Contracts: Solidity (Sepolia)

        • Wallet / Execution: MetaMask Smart Accounts (EIP-4337)

        • Indexing & Analytics: Envio (GraphQL)

          Impact

          ✅Eliminates risky unlimited approvals

          ✅ Reduces manual DeFi effort

          ✅ Improves transparency and trust

          ✅ Provides a scalable foundation for advanced DeFi agents

          AutoPilot DeFi demonstrates how DeFi automation can be both powerful and safe — without compromising user control.

ハッカソンの進行状況

During the hackathon, I designed and built AutoPilot DeFi end-to-end. I started by defining the core problem of unsafe DeFi automation caused by unlimited token approvals. I then implemented the frontend using React and Tailwind, followed by Solidity smart contracts deployed on Sepolia for automated portfolio rebalancing. Next, I integrated MetaMask Smart Accounts to replace unlimited approvals with scoped, expirable, and revocable permissions. I implemented the full permission lifecycle including grant, revoke, and expiry handling through the UI. After that, I added Envio blockchain indexing to track portfolio balances, rebalance transactions, and permission-related events in real time. I built an analytics dashboard using indexed GraphQL data to visualize balances, history, and gas usage. Finally, I focused on testing, UX polish, and creating a complete demo flow showing wallet connection, permission approval, automated execution, and real-time analytics. The project was iteratively improved throughout the hackathon based on testing and feedback.

資金調達の状況

Exploring future fundraising. AutoPilot DeFi is currently a built prototype focused on validating permission-based DeFi automation using MetaMask Smart Accounts and Envio. Based on user adoption, feedback, and partner interest, we plan to explore grants or early-stage funding to further develop the platform into a production-ready DeFi automation product.
チームリーダー
UUma Devi Ch
プロジェクトリンク
業界
DeFi