project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4
project screenshot 5
project screenshot 6

ChainSage

ChainSage: AI-powered DeFi strategy optimizer across multiple chains. Leverages Zircuit for high-performance smart contracts, LayerZero for cross-chain messaging, and Phala Network for confidential AI computations. Maximize your DeFi returns with personalized, secure insights.

ChainSage

Created At

ETHGlobal San Francisco

Winner of

Zircuit - Best DeFi Project on Zircuit

Project Description

ChainSage is an innovative AI-powered DeFi strategy optimizer that operates across multiple blockchain networks. The project aims to solve the challenge of identifying optimal investment strategies in the rapidly evolving DeFi landscape. It does this by aggregating strategies from various chains, using artificial intelligence to analyze and recommend optimal strategies based on user preferences, and providing a user-friendly interface for strategy comparison and selection. The project leverages a sophisticated technology stack, including React.js for the frontend, Solidity for smart contracts, TensorFlow.js for AI modeling, and is primarily deployed on the Zircuit Testnet. It utilizes LayerZero for cross-chain messaging and Phala Network for confidential computing, ensuring privacy and security in AI computations. The core smart contract, ChainSageOApp, manages strategies across different chains and includes functions for adding strategies, retrieving data, and optimizing strategies cross-chain. With its focus on user experience, cross-chain functionality, and AI-driven insights, ChainSage represents a cutting-edge approach to DeFi strategy optimization, aiming to provide users with secure, efficient, and personalized investment recommendations across the fragmented DeFi ecosystem.

How it's Made

This project is built on a foundation of Solidity smart contracts, with the main ChainSageOApp contract inheriting from LayerZero's OApp for cross-chain functionality. This allows ChainSage to manage and optimize DeFi strategies across various blockchain networks. The frontend is developed using React.js, providing a user-friendly interface for interacting with the DeFi strategies. Key components include AIOptimizer for strategy fetching and optimization, StrategyDisplay for rendering strategy items, and WalletConnection for managing user wallet connections. The project integrates TensorFlow.js for AI-driven strategy analysis and recommendations, while Ethers.js facilitates blockchain interactions. ChainSage incorporates several cutting-edge technologies to enhance its functionality and security. LayerZero's protocol enables cross-chain messaging and strategy optimization across different networks. Phala Network's SDK is integrated to ensure the privacy and security of AI model computations through confidential computing in a Trusted Execution Environment (TEE). The smart contracts are deployed on the Zircuit Testnet, taking advantage of its EVM-compatible environment, while the frontend is hosted on Vercel for reliable and fast access. The development process included addressing challenges such as cross-chain data consistency and simulating AI decision-making for the hackathon demo. The project demonstrates the potential for sophisticated and secure DeFi applications by integrating blockchain technologies with AI, showcasing innovative solutions for DeFi strategy optimization across multiple chains.

background image mobile

Join the mailing list

Get the latest news and updates