Universal crypto asset manager with MEV-protected cross-chain swaps
1inch Sweep is a comprehensive crypto asset management tool that enables users to efficiently manage and swap assets across multiple chains while protecting against MEV (Maximal Extractable Value) attacks. The platform offers real-time balance scanning across supported networks (BNB Chain, Polygon, Arbitrum, Optimism, and Base) for both native and ERC20 tokens, with built-in risk filtering and a minimum $1 threshold for asset discovery.
The core functionality revolves around two main features:
The platform implements robust security measures including signature verification, transaction simulation, rate limiting, and slippage controls. It charges a 1% fee (minimum $0.1) for swap operations.
Built with modern web technologies (Next.js 13.5, TypeScript, React Query, Wagmi/Viem), the project integrates with 1inch's Balance API for asset discovery and Fusion+ SDK for secure swaps. The architecture is designed to be secure, efficient, and user-friendly, with comprehensive error handling and gas optimization features.
1inch Sweep is built on a modern web3 stack with Next.js 13.5 and TypeScript as the foundation. The frontend uses React Query for efficient data fetching and caching, while Wagmi/Viem handles all Ethereum interactions. The UI is built with Radix UI components and styled with TailwindCSS.
The core functionality is split into two main parts: the multi-chain scanner and the universal swap system. The scanner uses 1inch's Balance API to fetch real-time token balances across supported chains (BNB Chain, Polygon, Arbitrum, Optimism, Base). The swap system leverages 1inch's Fusion+ SDK for MEV-protected cross-chain swaps.
Security is implemented at multiple levels. All transactions are simulated before execution, with signature verification and slippage controls. The system includes rate limiting with exponential backoff to prevent abuse. Gas prices are optimized using Viem's gas estimation features.
The project uses WalletConnect for wallet connections and Alchemy for RPC access. The codebase is organized with custom hooks for reusable logic, API routes for backend operations, and a component-based architecture using Radix UI primitives. The development environment is set up with ESLint, Prettier, and TypeScript for code quality and type safety.
Key technical features include real-time balance updates through React Query, cross-chain bridging implementation, and a risk filtering system for token discovery. The project maintains a 1% fee (minimum $0.1) for swap operations while providing MEV protection and gas optimization.