
SwipeFi
Gamified Telegram Mini App building sophisticated DeFi yield positions via 1inch Aqua & SwapVM
Demo
About
SwipeFi transforms complex decentralized finance into an intuitive, gamified Telegram Mini App designed to bring retail users into Web3. Traditional DeFi platforms overwhelm everyday users with intimidating candlestick charts, manual multi-step interactions across protocols, and complex order routing. SwipeFi distills asset discovery and yield generation into a familiar binary experience: swipe left to skip, or swipe right to automatically execute a sophisticated, multi-step DeFi position in a single interaction. Each token card presents a dark-mode glassmorphic interface showing the asset's identity, a 24-hour price trend, and AI-generated project insights. Beneath its seamless UI, SwipeFi relies on 1inch Aqua and SwapVM to package complex end-to-end trading and yield strategies into a single transaction. Instead of performing basic swaps, a right swipe triggers SwapVM to execute an atomic "Zap & Yield" flow—swapping USDC for an underlying token and instantly depositing it into yield-generating protocols (such as liquid staking), maximizing execution efficiency while eliminating user friction.
How it's made
SwipeFi is built as a lightweight, high-performance Telegram Mini App designed for mobile responsiveness. The frontend uses Next.js, TypeScript, and Tailwind CSS to deliver a glassmorphic dark-mode interface, paired with Framer Motion to drive 60 FPS touch-gesture physics for card swiping. The core financial architecture relies directly on 1inch's Aqua Protocol and SwapVM. Using the @1inch/aqua SDK, SwipeFi constructs custom execution instructions targeting SwapVM smart contracts. When a user swipes right, the application calls a Next.js API Route Handler that compiles a unified SwapVM call. This single instruction atomically routes USDC into a target token via 1inch liquidity and immediately deposits the acquired asset into Lido (or similar yield protocols) to issue yield-bearing tokens (e.g., stETH) back to the user. For the live demonstration and testing environment, the smart contract execution was validated on a local Mainnet Fork powered by Hardhat, simulating live state, whale token impersonation, and on-chain token balance transfers. To overcome Telegram's in-app webview constraints, we bridged the Telegram Web Apps SDK directly to an injected provider context to ensure smooth, single-tap transaction sign-offs.