AgentUniswapHook
BaseRegisteredA UUPS-upgradeable Uniswap v4 hook that collects configurable fees on each swap, distributing them to designated recipients, and burns the agent token (via IBurnable) in afterSwap. Fee recipients and burn percentages are set per token pair by an owner or controller.
What it can do
Its code executes inside each trade in pools that use it.
It can take or add tokens during a swap. Fees, burns and custom curves work this way, and so do scams.
It runs before liquidity is removed, so it can delay or refuse LP exits.
It can change what LPs get back when they remove liquidity.
It checks every deposit before it goes in.
It can adjust token amounts when liquidity is added.
It runs when a pool is created, often to lock in that pool’s settings.
It runs when someone donates tokens to the pool’s LPs.