A Uniswap v4 hook whose pool depth comes from a maker's 1inch Aqua strategy, not locked liquidity.
A new token's Uniswap pool starts thin. To increase its depth, a market maker normally has to lock inventory inside that one pool, where it can't serve anything else. Confluence is a Uniswap v4 hook that gets its depth from a maker's 1inch Aqua strategy instead. The maker's tokens stay in their own wallet and move only at the moment of a fill. On each swap, the hook buys part of the trade from the maker's Aqua strategy through 1inch's deployed SwapVM router, and the pool's own curve (x.y = k) fills the rest, all in the same transaction. The maker's strategy includes a price band: an Extruction module we wrote refuses any fill more than 2% from the pool's live price, so the maker is never filled at a stale price. And Aqua can never break a swap: if the Aqua leg fails for any reason, it is undone and the pool fills the whole trade. Measured on a mainnet fork (1,000 USDC into MUMB, a 2,500 USDC / 2,500 MUMB pool): 984.934 MUMB pool-only vs 991.550 MUMB with CONFLUENCE, about 67 bps better, with the pool price moving 1.09% instead of 2.40%. This is one configuration, not a general claim. The live site replays runs recorded from the fork. The live demo runs against the local fork.
Contracts (Solidity 0.8.30, Foundry): ConfluenceHook implements beforeSwap with beforeSwapReturnDelta. It takes the Aqua slice out of the PoolManager, calls 1inch's deployed AquaSwapVMRouter v1.0.2 as the Aqua taker inside beforeSwap, settles the output back, and returns a BeforeSwapDelta. The pool curve then fills the remainder.
1inch: Aqua and the SwapVM router are used unmodified at their official mainnet addresses. On 1inch's recommendation we did not fork SwapVM or write a custom opcode. The maker's SwapVM program is fee, XYC curve, then an Extruction step calling our PoolPriceBandExtruction: a stateless, non-upgradeable contract that reads the v4 pool's live price and reverts if the fill price is outside the band. Any maker can attach it to any strategy without redeploying. Safety: the Aqua call sits in a try/catch with a capped gas forward, so any failure (band breach, docked strategy, short wallet, out of gas) unwinds and the pool fills everything. The hook holds zero tokens after every swap. Off-chain: a TypeScript quoter (viem) simulates 16 candidate splits at a fixed gas limit and picks the best. Priya's order is built with the 1inch swap-vm SDK and is byte-equal to our Solidity builder.
Testing: 73 Foundry fork tests, including invariants and fuzzing with mutation checks, and TS unit and live tests, all on a local anvil fork of mainnet. Frontend: React, Vite and Tailwind, with a live mode that drives the fork and a replay mode for the hosted site. Notable hack: anvil snapshots are single-use, so every demo revert is followed at once by a new snapshot.

