project screenshot 1
project screenshot 2
project screenshot 3

De_Terminal

De_Terminal is an open-source tool to help traders understand complex Defi products using ChatGPT.

De_Terminal

Created At

ETHGlobal Tokyo

Winner of

trophy

🧠 Uniswap Foundation — Open/Innovation Track

trophy

2️⃣ Metamask — Best Snap

Project Description

The challenge with analytics is that users must understand what data is available and how to summarise it. So we are building a tool that understands Defi products and explains them in simple terms. De_Terminal helps traders make trades by describing the desired outcome.

We create an AI agent that knows how to access information about Uniswap V3 Pools and uses this information to answer questions from the user.

We then create a MetaMask Snap to display the AI description of the transaction directly in MetaMask before the user signs the transaction.

How it's Made

We use OpenAI and LangChain to build an agent that knows how to interact with Uniswap V3. The agent uses the Reason and Act (ReAct) prompt pattern: each reasoning step is followed by an action.

We give 4 tools to the AI: lookup pool information (liquidity, price, etc.), compute the required amount of tokens to deposit, compute liquidity in a given price range, and predict the expected fees collected.

The front end is implemented in React + Remix + Chakra UI. We import pool data from the graph into a Postgres database accessible by the agent.

We built a MetaMask Snap that invokes the De_Terminal API to display the transaction outcome in an easy-to-understand format.

background image mobile

Join the mailing list

Get the latest news and updates