MEV-aware agent fluxes Uniswap v4 liquidity via LI.FI when deviation >25%
Uniflux is an autonomous, MEV-aware liquidity agent designed for Uniswap v4. It continuously monitors pool state and on-chain price deviations, detecting conditions where liquidity becomes inefficient or vulnerable to MEV extraction. When a deviation threshold (e.g. 25%) is exceeded, Uniflux rebalances or fluxes liquidity using external routing via LI.FI, optimizing capital efficiency while minimizing adverse selection. The system exposes a browser-based control panel that allows users to start, stop, and observe the agent in real time, while all sensitive signing and execution logic remains securely on the backend.
Uniflux is built with a clear separation between a long-running backend agent and a lightweight frontend controller. The backend is implemented in Node.js with TypeScript, compiled to production-ready JavaScript for low-memory execution, and deployed as a persistent service. It connects directly to Uniswap v4 contracts via RPC providers, listens for MEV-relevant signals, and executes liquidity actions using smart routing through LI.FI. The frontend is deployed on Vercel and communicates with the agent via REST APIs, providing real-time status and manual controls. This architecture ensures secure key handling, reliable on-chain execution, and a smooth user experience without exposing private keys or signing logic to the browser.

