Skip to content

Open-Sorcerer/lucy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lucy 🤖

Your personal AI-powered DeFi agent that lives as an NFT, managing complex DeFi strategies through natural language while securing assets in its own Token Bound Account.

Overview

AgentFi transforms DeFi accessibility by introducing AI-powered financial agents that live as NFTs. Each agent is a unique digital entity with its own secure wallet (powered by Token Bound Accounts/ERC-6551) and investment personality. Through natural language interactions, users can delegate complex DeFi operations - from yield farming to cross-chain bridging - to their personalized agent, making DeFi as simple as having a conversation with your digital financial assistant.

Key Features

  • AI-Powered Natural Language Interface: Interact with DeFi protocols through simple text commands
  • Token Bound Accounts: Each NFT has its own secure wallet to hold and manage assets
  • Multi-Chain Support: Deployed on Base and Polygon, with cross-chain capabilities via CCIP
  • DeFi Protocol Integrations:
    • Compound Finance for lending/borrowing
    • Polymarket for prediction markets
    • CoW Protocol for efficient trading
    • Bitcoin deposits via BitDSM
    • Cross-chain bridging

How it's Made

AgentFi leverages several technologies and protocols:

1. Token Bound Accounts (ERC-6551)

  • Deployed on Base and Polygon
  • Each NFT gets its own wallet address
  • Secure asset management through smart contract architecture

2. AI Integration

  • Natural language processing using OpenAI's GPT-4o
  • Contextual understanding of DeFi commands and strategies
  • Automated strategy execution
  • Error handling and user-friendly responses
  • Used MessageKit and trained AI agent to handle user requests and make investments on their behalf.

3. Protocol Integrations

  • Compound Finance: Yield generation through lending
  • CoW Protocol: MEV-protected trading
  • Polymarket: Prediction market interactions
  • CCIP: Cross-chain asset transfers
  • BitDSM: Delegate Bitcoin and earn rewards on EVM.

4. Security & Privacy

  • Nillion for secure data storage
  • Private key management
  • Transaction signing security
  • Rate limiting and validation

Tech Stack

  • Frontend: MessageKit for natural language processing
  • Smart Contracts: Solidity, ERC-721, ERC-6551
  • Cross-chain: Chainlink CCIP
  • Development: TypeScript, Viem, Ethers.js
  • Infrastructure: Base, Polygon

Contract Deployments

Token Based Accounts

Polygon

TBA_FACTORY_CONTRACT = 0x325c488563E68e956DA16925fD062EA4692C59eC

Base

TBA_FACTORY_CONTRACT = 0x956d53cA7074338022939D582a30e97c7981aBc2

Scroll

TBA_FACTORY_CONTRACT = 0x956d53cA7074338022939D582a30e97c7981aBc2

CCIP Contracts

CCIP Gateway

BlockScout

CCIP Explorer

Aave Gateway

Base

CapitalFi - BlockScout

CapitalFiGateway - BlockScout

OP

CapitalFi - BlockScout

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •