{"hook":"0xb3cA29cF721380CEe8b8e4755F3865Ebc68Fe8cC","block":92951149,"bits":10444,"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":true},{"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":8474,"selectors":["0x0a009097","0x236587a2","0x3dbe6660","0x575e24b4","0x6ec401d7","0x6fc2be50","0x75d0c0dc","0x8549d9be","0x8a24b7a6","0x8e14bd5a","0xa0a8e460","0xae9c67a5","0xb47b2fb1","0xb4eebd6d","0xdc4c90d3","0xe1a9111b","0xe606659d","0xf26ef49d"],"delegatecall":true,"selfdestruct":false,"create":true,"calls":0,"addresses":["0xfFfd8963EFd1fC6A506488495d951d5263988d25","0xd2832D5F64C7116bE2c7B32D8c06d60023b479D8"]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0x0a009097","name":"coordinator()"},{"selector":"0x236587a2","name":"KERNEL_INSTANCE_LAYOUT_ID()"},{"selector":"0x3dbe6660","name":"accountingKernelCodeHash()"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x6ec401d7","name":"MAX_SQRT_PRICE_LIMIT()"},{"selector":"0x6fc2be50","name":"stackRegistry()"},{"selector":"0x75d0c0dc","name":"contractName()"},{"selector":"0x8549d9be","name":"REQUIRED_FLAGS()"},{"selector":"0x8a24b7a6","name":"KERNEL_FAMILY_ID()"},{"selector":"0x8e14bd5a","name":"kernelInstanceLayoutId()"},{"selector":"0xa0a8e460","name":"contractVersion()"},{"selector":"0xae9c67a5","name":"accountingKernel()"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xb4eebd6d","name":"MIN_SQRT_PRICE_LIMIT()"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xe1a9111b","name":"STATEFUL_MODULE_MAGIC()"},{"selector":"0xe606659d","name":"statefulModuleKernelMagic()"},{"selector":"0xf26ef49d","name":"DYNAMIC_FEE_FLAG()"}],"history":{"pools":45,"firstTime":1788833081,"lastTime":1791111450},"pools":[{"id":"0x9d122d9b526ad72eebd1ac6998b6f0c5197a08cc8b0b38ff56f7b64d8fc02197","key":{"currency0":"0x153BF8C920Ce64Cbf7C0e0C285DDe7ae5f7c9e1F","currency1":"0x18E674231A58c239Dc7DaeDcffE15Ec3A24cff5c","fee":8388608,"tickSpacing":60,"hooks":"0xb3cA29cF721380CEe8b8e4755F3865Ebc68Fe8cC"},"symbols":["HI","HOOKR"],"state":{"sqrtP":"1594648427373121020590562861","tick":-78118,"protocolFee":0,"lpFee":0,"liquidity":"16759943521589486211895876"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"26269164873094376957314","paid":"26269164873094376957314","got":"10609576776659392865","expected":"10641510946603833809","feePpm":0,"takePpm":3001},{"zeroForOne":false,"ok":true,"amountIn":"168666145543594932408","paid":"168666145543594932408","got":"413845720045441610305130","expected":"416140607644513585715930","feePpm":0,"takePpm":5515}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-2692756044825437156254","-1001048904860137675"],"removed":["2692756044825437156253","1001048904860137674"]}},{"id":"0x1ebfca765041e6c69ed31f5c5e9569e9d00d8ba12f50ed4c6474ffdccbc349b6","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0xE7121Dab54b8F1Fe1EB748AC1165e669d7a5997E","fee":8388608,"tickSpacing":60,"hooks":"0xb3cA29cF721380CEe8b8e4755F3865Ebc68Fe8cC"},"symbols":["ETH","HI"],"state":{"sqrtP":"1562796469926447644765379758510499","tick":197803,"protocolFee":0,"lpFee":0,"liquidity":"50050759717571588887209"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"1268696788473289","paid":"1268696788473289","got":"490664677127260984615130","expected":"493385546833774546487808","feePpm":0,"takePpm":5515},{"zeroForOne":false,"ok":true,"amountIn":"209863753514890122661231","paid":"209863753514890122661231","got":"537638715063483","expected":"539261545370494","feePpm":0,"takePpm":3010}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-7707958516947","-3123424462226835313466"],"removed":["7707958516946","3123424462226835313465"]}}],"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":"pass","detail":"It takes 0.55% 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":"caution","detail":"Its pools use a dynamic fee that the hook sets before every swap. It stands at 0% now and can change."},{"id":"05","title":"No one holds the switch","status":"pass","detail":"No owner and no admin functions found."},{"id":"06","title":"The code cannot change","status":"caution","detail":"The bytecode contains DELEGATECALL."},{"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":"45 pools over 41 days."}],"score":85,"verdict":"caution"}