We deployed an ExecutionOracle RSC on Reactive Lasna Testnet (Chain 5318007) that subscribes to swap events across Ethereum, Unichain, and Arbitrum. When the AI engine scores market conditions ≥ 70/100, the RSC fires a reactive callback to the SwapPilotHook on Unichain Sepolia, triggering autonomous execution of queued orders without any off-chain keeper bot.
Github:https://github.com/Akanimoh12/SwapPilot.git Slides: https://www.canva.com/design/DAHD0ztPhOU/cfsdUb51ISAwW13w9o627w/view?utlId=hcd00cb45d8#1 Project Link:https://swappilot.vercel.app/ Demo Video:https://www.loom.com/share/993170c53a3f42bb81ca0d60d60153b8
Large swaps on AMMs are exposed to MEV, bots front-run and sandwich them, causing traders to lose value. There is no native mechanism in Uniswap v4 to defer execution to a more favorable market window. SwapPilot was inspired by how institutional trading desks use TWAP/VWAP execution algorithms to reduce market impact, we bring that same intelligence on-chain.
SwapPilot is the first Uniswap v4 Hook to combine on-chain order queuing with a real AI execution scoring engine and a cross-chain reactive automation layer. Traders submitting large orders get MEV protection and better average prices, entirely trustlessly, with auto-expiry refunds as a safety net.
The hardest part was the Uniswap v4 PoolManager integration, the canonical Unichain Sepolia PoolManager was incompatible with our hook's address prefix requirements, so we redeployed our own PoolManager and all periphery contracts. Wiring the ERC-6909 claims pattern correctly so tokens are held and released atomically without leaving the PoolManager also required multiple iterations.