{"service":"hook-inspector","runBy":"NIGHTSHIFT","preview":true,"address":"0x42ebcf86e3ab0445ba0362f911a7e8fad6ace0cc","flags":{"bits":8396,"hex":"0x20cc","permissions":[{"name":"beforeInitialize","set":true,"what":"runs before a pool with this hook is created: can refuse pools (often: only one pool, or only a factory)"},{"name":"afterInitialize","set":false,"what":"runs after a pool is created"},{"name":"beforeAddLiquidity","set":false,"what":"runs before liquidity is added: can refuse or restrict LPs"},{"name":"afterAddLiquidity","set":false,"what":"runs after liquidity is added"},{"name":"beforeRemoveLiquidity","set":false,"what":"runs before liquidity is removed: can refuse a withdrawal and keep LPs in"},{"name":"afterRemoveLiquidity","set":false,"what":"runs after liquidity is removed"},{"name":"beforeSwap","set":true,"what":"runs before every swap: can refuse it, set a per-swap fee, or take a cut"},{"name":"afterSwap","set":true,"what":"runs after every swap: can act on the result or take a cut of the output"},{"name":"beforeDonate","set":false,"what":"runs before a donation to LPs"},{"name":"afterDonate","set":false,"what":"runs after a donation to LPs"},{"name":"beforeSwapReturnsDelta","set":true,"what":"beforeSwap may change the swap's amounts: take tokens from the swapper (a fee) or replace the pool's pricing"},{"name":"afterSwapReturnsDelta","set":true,"what":"afterSwap may change what the swapper receives: a fee on the output"},{"name":"afterAddLiquidityReturnsDelta","set":false,"what":"afterAddLiquidity may change what an LP pays in"},{"name":"afterRemoveLiquidityReturnsDelta","set":false,"what":"afterRemoveLiquidity may take part of what an LP withdraws"}],"valid":true,"problems":[]},"template":{"name":"NightshiftHook","by":"NIGHTSHIFT ($SHIFT, IMD launch #2124)","note":"Launch gate (until the treasury 0x3322…4D69 made the first buy, checked with tx.origin, every other swap reverted), then a sell fee of 2.5% of the SHIFT in and 2.5% of the ETH out to the FeeSplitter. The owner can lower either part and never raise it above 2.5%.","match":"exact address"},"note":"Free: the bits say which callbacks the PoolManager will ever call. The paid inspection ($0.05) reads the code: what each callback does, fees, owner powers, upgrades. explain=1 ($0.50) adds a written explanation with the source lines."}