
TWAMM hook
Zaha Studio
January 24, 2025
This document describes the findings of the manual review of TWAMM hook. The work was undertaken from Jan 19 to Jan 24, 2024.
This protocol consists of a single Uniswap-v4 hook contract that establishes orders in arbitrary
pools. The contract serves as a time-weighted-average market maker (TWAMM) for swapping
orders on the Uniswap-v4 protocol. Traders submit swapping orders by depositing their funds to
this hook which is coupled to a Uni-v4 pool, consisting of two tokens, but also specify the time
frame in which the order is executed, effectively trading many very small token amounts over the
specified trading period.
The hook makes sure to execute those orders and reward the original depositors with the output
reserves the hook obtained.