Mantle Flow
Mantle Flow is an AI-powered cryptocurrency trading platform on Mantle Network, combining Gemini AI with blockchain to analyze markets, manage portfolios and automate trading through smart contract
Videos
Description
Problem
The cryptocurrency market never sleeps, creating an impossible challenge for individual traders.
Human Limitations: Sleep schedules miss optimal entries; emotions lead to impulsive mistakes; complex technical analysis (RSI, MA) creates barriers to entry.
Existing Solutions Fail: Centralized exchanges (CEX) carry custody risks (FTX style). DeFi is secure but lacks automation. Existing trading bots are too complex for average users. There is a gap for a platform combining AI intelligence, automated execution, and non-custodial security.
Solution
MantleFlow bridges this gap with an intelligent layer atop the Mantle Network:
AI Intelligence Layer (Powered by Google Gemini Flash):
Natural Language Trading: Users command: "Buy ETH when RSI is oversold and sentiment is fearful."
Multi-Agent System: Includes a Market Analysis Agent (real-time sentiment/technical data), Portfolio Agent (risk rebalancing), and Transaction Agent (security parsing).
Automated Trading System:
Smart Triggers execute based on multi-conditions: Price + Indicators + Sentiment + Gas Fees.
Background executors monitor conditions every 30 seconds.
Smart Contract Vault (Non-Custodial):
Users deposit funds into a
VaultWithSwapsmart contract.Security: Users retain ownership. The backend bot is only authorized to execute swaps, never to withdraw funds. Built with OpenZeppelin (ReentrancyGuard, SafeERC20).
Why Mantle Network?
MantleFlow leverages Mantle’s modular architecture for viability:
Low Gas Fees: Critical for an automation bot that checks conditions and swaps frequently. Mainnet costs would make this business model impossible.
High Throughput: Ensures trades execute instantly during high-volatility spikes.
Dev Experience: Seamless EVM compatibility allowed rapid deployment using Hardhat and ethers.js.
Business Model
Sustainable revenue without reliance on speculative tokens:
Transaction Fees: 0.3% on successful automated swaps.
Freemium Subscription:
Free: Basic automation (limit 10 triggers).
Premium: Advanced AI analysis, unlimited triggers, priority execution.
B2B Integration: Referral fees from DEXs and partners.
Roadmap
Phase 1 (Month 1-3): Mainnet launch on Mantle. Integration of TradingView widgets and advanced indicators .
Phase 2 (Month 3-6): Multi-DEX Aggregation (Uniswap V3, Agni). Copy Trading & Social Trading features. Mobile App (React Native).
Phase 3 (Month 6-12): ZK-Privacy strategies (hide your triggers). Expansion to other L2s while keeping Mantle as the liquidity hub. Institutional API access.
Progress During Hackathon
Built a fully functional automated trading layer on Mantle Network within the hackathon timeframe. We integrated a 6-agent Gemini AI system to analyze market sentiment, paired with a custom Express.js backend that handles high-frequency trigger logic. A key challenge was synchronizing off-chain AI with on-chain execution; we solved this by building a robust 30s-cycle worker and a secure VaultWithSwap contract. The final prototype handles real-time auth via wallet signatures and executes trades with <120ms latency.