TupleOracleHook
BaseRegisteredA Uniswap v4 hook that maintains a TWAP oracle (truncated observations) and a liquidity book tracking liquidity distribution across tick buckets. It records collateralized debt positions via hookData on liquidity operations, overrides swap fees based on direction (zero fee for tuple→wrapped-native swaps, fixed LP_FEE otherwise), and donates wrapped-native fees back to LPs on qualifying swaps.
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.
Pools using it let the hook choose the swap fee instead of a fixed tier.
It runs before liquidity is removed, so it can delay or refuse LP exits.
It checks every deposit before it goes in.
It runs when a pool is created, often to lock in that pool’s settings.