project screenshot 1
project screenshot 2
project screenshot 3

LiquefAI

AI based DEX aggregator - running Coinbase AgentKit, Graph and Uniswap smart router to do advanced swaps.

LiquefAI

Created At

Agentic Ethereum

Winner of

Coinbase

Coinbase Developer Platform - AgentKit Pool Prize

Prize Pool

Project Description

LiquefAI is basically a smarter version of 1Inch or other DEX aggregators. Instead of having to figure out all the trading details yourself, you can just tell it what you want to do in plain English - like "take my ETH and split it between USDC and DAI". Under the hood, it uses Coinbase's AgentKit and Uniswap's routing to find the best trades, but the cool part is you don't need to know any of that. The AI figures out what you're trying to do and handles all the complex DeFi stuff for you. Right now it works on Base mainnet and can do things like splitting trades between tokens with specific percentages. We're working on adding more features like creating liquidity pools and optimizing yield farming strategies. The goal is to make DeFi easier to use for regular people while still keeping all the powerful features that crypto natives love. Think of it as having a smart DeFi assistant that understands what you want to do and figures out the best way to do it, instead of you having to learn all the technical details yourself.

How it's Made

We built LiquefAI using Next.js with TypeScript, but the real magic happens through Coinbase's AgentKit - it's what lets us turn normal human language into actual trading actions. The AI part runs through GPT-4, which figures out what the user wants to do and breaks it down into specific trading steps. For the trading itself, we're plugged into Uniswap's Smart Order Router on Base mainnet. We had to get a bit creative with the multicall implementation to make it work smoothly - there's some hacky retry logic in there because, you know, blockchain stuff can be flaky sometimes. The Graph helps us find all the token info dynamically, so we don't have to hardcode everything. The trickiest part was probably getting the server-side components right. Since we're dealing with trades and private keys, we needed to make sure all the sensitive stuff stays server-side. We ended up using Next.js server actions for this, which worked out pretty well. One particularly hacky (but cool) thing we did was building a custom trading card interface that morphs based on what the user asks for. It can handle everything from simple swaps to complex splits between multiple tokens, and it all happens through the same component. We're running on Base mainnet right now, using their RPC endpoints. The whole thing is pretty modular - we could add more chains or DEXes pretty easily if we wanted to.

background image mobile

Join the mailing list

Get the latest news and updates