Uniswap v4’s hooks include tools for dynamically adjusting swap fees, lending unused liquidity for added yield, automatically hedging against impermanent loss and protecting against maximum extractable value (MEV) strategies, such as sandwich attacks.