{"hook":"0xD78a3e767d4852E67f25972B671d36a2c786e0cc","block":93493418,"bits":8396,"flags":[{"bit":13,"key":"beforeInitialize","label":"Before initialize","risk":0,"does":"Runs once, when a pool is created.","fn":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)","on":true},{"bit":12,"key":"afterInitialize","label":"After initialize","risk":0,"does":"Runs once, right after a pool is created.","fn":"afterInitialize(address,(address,address,uint24,int24,address),uint160,int24)","on":false},{"bit":11,"key":"beforeAddLiquidity","label":"Before add liquidity","risk":1,"does":"Can refuse a deposit, or only let some addresses provide liquidity.","fn":"beforeAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),bytes)","on":false},{"bit":10,"key":"afterAddLiquidity","label":"After add liquidity","risk":0,"does":"Runs after each deposit.","fn":"afterAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)","on":false},{"bit":9,"key":"beforeRemoveLiquidity","label":"Before remove liquidity","risk":2,"does":"Can refuse a withdrawal. LPs may not get out.","fn":"beforeRemoveLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),bytes)","on":false},{"bit":8,"key":"afterRemoveLiquidity","label":"After remove liquidity","risk":0,"does":"Runs after each withdrawal.","fn":"afterRemoveLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)","on":false},{"bit":7,"key":"beforeSwap","label":"Before swap","risk":1,"does":"Runs before every swap. On a dynamic-fee pool it can set the fee each time.","fn":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)","on":true},{"bit":6,"key":"afterSwap","label":"After swap","risk":0,"does":"Runs after every swap.","fn":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)","on":true},{"bit":5,"key":"beforeDonate","label":"Before donate","risk":0,"does":"Runs before a donation to LPs.","fn":"beforeDonate(address,(address,address,uint24,int24,address),uint256,uint256,bytes)","on":false},{"bit":4,"key":"afterDonate","label":"After donate","risk":0,"does":"Runs after a donation to LPs.","fn":"afterDonate(address,(address,address,uint24,int24,address),uint256,uint256,bytes)","on":false},{"bit":3,"key":"beforeSwapReturnDelta","label":"Before swap returns delta","risk":2,"does":"Can take part of what you put into a swap, or change how much is swapped.","fn":null,"on":true},{"bit":2,"key":"afterSwapReturnDelta","label":"After swap returns delta","risk":2,"does":"Can take part of what you get out of every swap.","fn":null,"on":true},{"bit":1,"key":"afterAddLiquidityReturnDelta","label":"After add returns delta","risk":2,"does":"Can charge LPs on the way in.","fn":null,"on":false},{"bit":0,"key":"afterRemoveLiquidityReturnDelta","label":"After remove returns delta","risk":2,"does":"Can take part of what LPs withdraw.","fn":null,"on":false}],"code":{"size":13860,"selectors":["0x0cb6d537","0x0eb1b8aa","0x16eebd1e","0x21d0ee70","0x249d39e9","0x259982e5","0x2d3b22ad","0x37ff33e2","0x3b586c7f","0x431a9caa","0x46ca626b","0x478222c2","0x517ebdb8","0x575e24b4","0x58c5074b","0x5b127f14","0x6c2bbe7e","0x6fe7e6eb","0x715018a6","0x79ba5097","0x7a4e37b9","0x8652edf9","0x8da5cb5b","0x8f5a26ae","0x901a0122","0x91dd7346","0x938577e4","0x9f063efc","0xb47b2fb1","0xb6a8b0fa","0xb8dc491b","0xb9e6152b","0xbf5a5940","0xc0a2526c","0xc0fec2fe","0xc1acd255","0xd8464354","0xdc4c90d3","0xdc98354e","0xe1b4af69","0xe30c3978","0xe4860339","0xee1a56ce","0xf2fde38b","0xfae504de"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":13,"addresses":["0xfFfd8963EFd1fC6A506488495d951d5263988d25"]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":"0x04951dEdf8c41CF78470A087735101AD596C6c2d","functions":[{"selector":"0x0cb6d537","name":"snipeWindow()"},{"selector":"0x0eb1b8aa","name":"feeBps(address)"},{"selector":"0x16eebd1e","name":"launcher()"},{"selector":"0x21d0ee70","name":"beforeRemoveLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),bytes)"},{"selector":"0x249d39e9","name":"BPS()"},{"selector":"0x259982e5","name":"beforeAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),bytes)"},{"selector":"0x2d3b22ad","name":"fairLaunchWindow()"},{"selector":"0x37ff33e2","name":"dividendVault()"},{"selector":"0x3b586c7f","name":"setBaseFee(uint16)"},{"selector":"0x431a9caa","name":"MAX_TOTAL_FEE_BPS()"},{"selector":"0x46ca626b","name":"TICK_SPACING()"},{"selector":"0x478222c2","name":"feeVault()"},{"selector":"0x517ebdb8","name":"buckets(address)"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x58c5074b","name":"MAX_SNIPE_WINDOW()"},{"selector":"0x5b127f14","name":"MAX_FAIR_WINDOW()"},{"selector":"0x6c2bbe7e","name":"afterRemoveLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0x6fe7e6eb","name":"afterInitialize(address,(address,address,uint24,int24,address),uint160,int24)"},{"selector":"0x715018a6","name":"renounceOwnership()"},{"selector":"0x79ba5097","name":"acceptOwnership()"},{"selector":"0x7a4e37b9","name":"setMaxBuy(address,uint256)"},{"selector":"0x8652edf9","name":"poolKeyOf(address)"},{"selector":"0x8da5cb5b","name":"owner()"},{"selector":"0x8f5a26ae","name":"MAX_BASE_FEE_BPS()"},{"selector":"0x901a0122","name":"maxBuyDuringFairLaunch(address)"},{"selector":"0x91dd7346","name":"unlockCallback(bytes)"},{"selector":"0x938577e4","name":"lowerTax(address,uint16,uint16)"},{"selector":"0x9f063efc","name":"afterAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xb6a8b0fa","name":"beforeDonate(address,(address,address,uint24,int24,address),uint256,uint256,bytes)"},{"selector":"0xb8dc491b","name":"sweep(address,address)"},{"selector":"0xb9e6152b","name":"process(address)"},{"selector":"0xbf5a5940","name":"baseFeeBps()"},{"selector":"0xc0a2526c","name":"BURN()"},{"selector":"0xc0fec2fe","name":"LIQ_SWAP_SHARE_BPS()"},{"selector":"0xc1acd255","name":"setWindows(uint32,uint32)"},{"selector":"0xd8464354","name":"PLATFORM_SHARE_BPS()"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xe1b4af69","name":"afterDonate(address,(address,address,uint24,int24,address),uint256,uint256,bytes)"},{"selector":"0xe30c3978","name":"pendingOwner()"},{"selector":"0xe4860339","name":"tokens(address)"},{"selector":"0xee1a56ce","name":"accounted(address)"},{"selector":"0xf2fde38b","name":"transferOwnership(address)"},{"selector":"0xfae504de","name":"register((address,address,bool,int24,int24,uint16,uint16,uint16,uint16,uint16,uint16))"}],"history":{"pools":3,"firstTime":1790185204,"lastTime":1790446554},"pools":[{"id":"0x0a452ecd68a474ce43345fe64b7645b614f6aa3dd4afd0cc0210bb6e528bb8b4","key":{"currency0":"0x3418f6DB2Ba1f5B39034F168A9462d75F039e099","currency1":"0xE0444EF8BF4eD74f74FD73686e2ddF4C1c5591E8","fee":0,"tickSpacing":200,"hooks":"0xD78a3e767d4852E67f25972B671d36a2c786e0cc"},"symbols":["OTT","NFLX"],"state":{"sqrtP":"15650667588154918705036412","tick":-170600,"protocolFee":0,"lpFee":0,"liquidity":"197539196814480619990616"},"swaps":[{"zeroForOne":true,"ok":false,"why":"thin","reason":"no liquidity below the price"},{"zeroForOne":false,"ok":true,"amountIn":"19510867139055055","paid":"19510867139055055","got":"494755096227367463079967","expected":"499750124937531230229814","feePpm":0,"takePpm":9996}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-3920863939497281336573","-115320973764379"],"removed":["3920863939497281336572","115320973764378"]}},{"id":"0x1835827b4764391522b352db8324db3a4606735126ef7a3693926c2b50c2393a","key":{"currency0":"0x7f6f4dA8E0F1B152620347AAe1Bc8eb37aFB1580","currency1":"0x980dcf6766FA79f5Cf0c4AAdb3ab477ff15a9619","fee":0,"tickSpacing":200,"hooks":"0xD78a3e767d4852E67f25972B671d36a2c786e0cc"},"symbols":["IBAM","IBM"],"state":{"sqrtP":"8763037325723533239003506","tick":-182200,"protocolFee":0,"lpFee":0,"liquidity":"110605080916092494575463"},"swaps":[{"zeroForOne":true,"ok":false,"why":"thin","reason":"no liquidity below the price"},{"zeroForOne":false,"ok":true,"amountIn":"6116741962227684","paid":"6116741962227684","got":"489760017591380273656525","expected":"499750124937531228704758","feePpm":0,"takePpm":19991}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-3920863939497281336392","-36153628350918"],"removed":["3920863939497281336391","36153628350917"]}}],"openCallbacks":[],"checks":[{"id":"01","title":"Permissions that touch your money","status":"caution","detail":"The address enables before swap returns delta, after swap returns delta. The hook is allowed to take; the next two checks measure whether it does."},{"id":"02","title":"What it takes from a swap","status":"caution","detail":"It takes 2.00% of each swap on top of the pool fee."},{"id":"03","title":"LPs can get out","status":"pass","detail":"Liquidity added and removed in the same block came back whole."},{"id":"04","title":"The fee is the fee","status":"pass","detail":"A fixed fee of 0%, written in the pool key."},{"id":"05","title":"No one holds the switch","status":"caution","detail":"Owned by 0x04951dEdf8c41CF78470A087735101AD596C6c2d. Owner-style functions: setBaseFee, setMaxBuy, sweep, BURN, setWindows, transferOwnership."},{"id":"06","title":"The code cannot change","status":"pass","detail":"Not a proxy, no DELEGATECALL, no SELFDESTRUCT."},{"id":"07","title":"Only the PoolManager can call it","status":"pass","detail":"Each callback refused a call that did not come from the PoolManager."},{"id":"08","title":"Track record","status":"pass","detail":"3 pools over 26 days."}],"score":75,"verdict":"caution"}