Uniswap v4 introduces hooks that run custom code before and after every pool interaction, and Predicate extends this mechanism to enforce policies such as AML screening, sanctions checks, geographic blocks and exploit detection.