Manteia is a Sui DEX with 1inch cross-chain swaps, aggregation routing, limit orders, dynamic fees.
Manteia is a comprehensive DeFi trading platform that demonstrates the full power of 1inch Protocol integration. Think of Manteia as your intelligent trading assistant that doesn't just execute simple swaps, but creates sophisticated trading strategies that adapt to market conditions in real-time.
Manteia was built as a full-stack DeFi platform using Next.js 14 with TypeScript for the frontend, Express.js backend with Node.js, and comprehensive 1inch Protocol integration. The architecture features a multi-layered approach: OneInchMultiNetworkService handles API communication with intelligent rate limiting and caching, while LimitOrderService implements advanced predicate-based strategies using custom smart contract conditions. The frontend uses React hooks for state management and real-time WebSocket connections for live data. Key innovations include custom predicate builders for complex trading strategies, intelligent request queuing to handle API rate limits, and enhanced TWAP algorithms with slippage protection. The system integrates 8+ blockchain networks with unified token management and employs exponential backoff retry logic for robust error handling. Notable hack: custom predicate encoding using ethers.js ABI coder to create complex execution conditions that bypass 1inch's official limit order API while maintaining full onchain execution capabilities.