V4 Hook Fee Conformance
Recomputes a Uniswap v4 pool’s per-swap fee from v4-core’s own fee rules at the pinned commit a7cf038cd568801a79a9b4cf92cd5b52c95c8585 (ProtocolFeeLibrary.calculateSwapFee: protocolFee + lpFee − protocolFee·lpFee/1,000,000; Pool.sol’s protocol-fee-zero pass-through and MAX_SWAP_FEE boundary; LPFeeLibrary’s 0x400000 override flag, 0x800000 dynamic flag and MAX_LP_FEE 1,000,000) and checks each swap’s emitted fee against that recomposition. A mismatch means the declared fee story does not explain what the pool charged. The declared hook charge is accrued in integer arithmetic with every remainder reported, and LP revenue is reported separately, never netted against it. Evidence only, zero network.