Intent Swap

Agent-executed intent-based swaps on Uniswap v4 using hooks for onchain enforcement

Intent Swap

Created At

HackMoney 2026

Project Description

Intent Swap is an agent-driven trading system built on Uniswap v4 that allows users to express swap intents instead of executing immediate trades. An intent defines constraints such as acceptable price range, slippage tolerance, and time window. An offchain agent monitors onchain state and only executes the swap when all conditions are satisfied. Uniswap v4 hooks are used to enforce intent constraints at execution time, ensuring deterministic, transparent, and composable behavior directly at the protocol level.

How it's Made

The project is built using Uniswap v4 smart contracts and hooks. A custom hook contract validates swap conditions defined by user intents before allowing execution. An offchain agent script monitors pool state and submits transactions when intent conditions are met. The system relies on Uniswap v4’s extensibility to enforce logic at the pool level without modifying core protocol code. The agent logic is intentionally simple and deterministic, prioritizing reliability and transparency over predictive or speculative strategies.

background image mobile

Join the mailing list

Get the latest news and updates