DAK DEX is a cutting-edge decentralized exchange (DEX) built on the X1 Network. It features an integrated Gemini 3 Flash AI Agent that acts as a "UI Navigator" and "Live Trading Assistant," bridging the gap between complex DeFi protocols and a seamless user experience.
Live Site: dak-zeta.vercel.app
Network: X1 Network (Testnet/Mainnet)
Our project participates in the Live Agents category. The DAK AI Agent is integrated directly into the frontend to simplify blockchain interactions:
- Intelligent UI Navigation: Users can type commands like "Swap 0.1 X1T to Token 1" and the AI will automatically populate the transaction forms.
- Real-time Context Awareness: The agent knows the user's wallet address, native balance, and current selected token to provide personalized advice.
- Natural Language to Action: Converts conversational intent into executable blockchain state changes, reducing the learning curve for new DeFi users.
- Instant Swap: Exchange native X1T and ERC20 tokens with optimized routing.
- Liquidity Provision: Add liquidity to pools to support the ecosystem.
- Yield Staking: Stake "Token 1" to earn rewards with a real-time claiming mechanism.
- One-Click Network Setup: Integrated "Add X1 Network" button for seamless onboarding.
- Frontend: React.js + Tailwind CSS (Cyberpunk Emerald Theme).
- AI Engine: Google Gemini 3 Flash API via REST integration.
- Blockchain Interface: Ethers.js (v6).
- Smart Contracts: Deployed on X1 Network (Router, WETH, Staking, and ERC20 tokens).
-
Clone the Repository:
git clone [https://github.com/YFiN99/dak.git](https://github.com/YFiN99/dak.git) cd dak -
Install Dependencies:
npm install
-
Configure Environment Variables: Create a
.envfile in the root directory:VITE_GEMINI_API_KEY=your_google_gemini_api_key_here
-
Start Development Server:
npm run dev
To verify the project's functionality, please follow these steps:
- Connect Wallet: Click the CONNECT button. If you aren't on X1 Network, the app will automatically prompt you to add/switch to X1 Network in MetaMask.
- AI Command Test: Locate the DAK AI AGENT chatbox at the bottom right.
- Execute Intent: Type: "I want to swap 0.1 X1T" and press Enter.
- Observe: The "You Pay" input field will automatically be filled with
0.1.
- Observe: The "You Pay" input field will automatically be filled with
- Manual Transaction: Perform a Swap or Stake action manually to verify the
ethers.jsintegration with the X1 smart contracts. - Check Console: You can see the AI's thought process and API responses in the browser's developer console.
- Network Name: X1 Network
- Chain ID: 196 (0xC4)
- Currency Symbol: X1T
- Block Explorer: https://maculatus-scan.x1eco.com/
[ User Interface (React) ] <------> [ Gemini 3 Flash API ]
| |
| (Ethers.js) | (NLP Processing)
v v
[ X1 Network Smart Contracts ] <---- [ DAK AI Agent Logic ]