{"hook":"0xb216070c3509047ea597E2E626A29cea427a60C8","block":93004745,"bits":8392,"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":false},{"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":23465,"selectors":["0x01099984","0x16b3e9bb","0x1e83409a","0x286e08f0","0x46a7ecb2","0x473ca926","0x4c95a848","0x4fe6b80b","0x569a2d7d","0x575e24b4","0x578ea4a0","0x5f98872e","0x69f99990","0x6ec9a743","0x71246487","0x7639bc1e","0x7e03657d","0x83ea96a9","0x91dd7346","0xac4e4054","0xacbf9f16","0xb47b2fb1","0xc5afbcb4","0xc66f3cb4","0xd2ac2d8a","0xd2d5f19e","0xd7b636e9","0xd7ca239a","0xdc98354e","0xe148b275"],"delegatecall":true,"selfdestruct":false,"create":false,"calls":19,"addresses":["0x26CD66aDec6176c11f894A9DE5bC504235c90241","0xfFfd8963EFd1fC6A506488495d951d5263988d25"]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0x01099984","name":"harvest((address,address,uint24,int24,address))"},{"selector":"0x16b3e9bb","name":"setProgramConfig(bytes32,(uint64,uint64,uint64,uint64,uint64,bool,address,address,uint256,uint256))"},{"selector":"0x1e83409a","name":"claim(address)"},{"selector":"0x286e08f0","name":"donate((address,address,uint24,int24,address),uint256)"},{"selector":"0x46a7ecb2","name":"executePump(bytes32,(address,address,uint24,int24,address),bool,uint256,uint256)"},{"selector":"0x473ca926","name":"programOf(bytes32)"},{"selector":"0x4c95a848","name":"addLiquidityAdvanced((address,address,uint24,int24,address),int24,int24,uint128,address,(uint64,uint64,uint64,uint64,uint64,bool,address,address,uint256,uint256))"},{"selector":"0x4fe6b80b","name":"obligationOf(address)"},{"selector":"0x569a2d7d","name":"parkedDirectOf(bytes32)"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x578ea4a0","name":"initPot((address,address,uint24,int24,address),address,address)"},{"selector":"0x5f98872e","name":"executeHarvest(bytes32,(address,address,uint24,int24,address),bool)"},{"selector":"0x69f99990","name":"removeProgramLiquidity((address,address,uint24,int24,address),uint128,address)"},{"selector":"0x6ec9a743","name":"transferProgramOwnership(bytes32,address)"},{"selector":"0x71246487","name":"setRecipient(bytes32,address)"},{"selector":"0x7639bc1e","name":"setProgramOperator(bytes32,address)"},{"selector":"0x7e03657d","name":"addLiquidity((address,address,uint24,int24,address),int24,int24,uint128,address)"},{"selector":"0x83ea96a9","name":"parkedOf(address)"},{"selector":"0x91dd7346","name":"unlockCallback(bytes)"},{"selector":"0xac4e4054","name":"REQUIRED_HOOK_FLAGS()"},{"selector":"0xacbf9f16","name":"addProgramLiquidity((address,address,uint24,int24,address),uint128)"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xc5afbcb4","name":"quotePump((address,address,uint24,int24,address),uint256)"},{"selector":"0xc66f3cb4","name":"potOf(bytes32)"},{"selector":"0xd2ac2d8a","name":"heldOf(address)"},{"selector":"0xd2d5f19e","name":"launchPool((address,address,uint24,int24,address),uint160,address,address,int24,int24,uint128,address,(uint64,uint64,uint64,uint64,uint64,bool,address,address,uint256,uint256))"},{"selector":"0xd7b636e9","name":"quoteShield((address,address,uint24,int24,address),int256)"},{"selector":"0xd7ca239a","name":"flushDirect(bytes32)"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xe148b275","name":"executeCompound(bytes32,(address,address,uint24,int24,address),uint256,uint256,bool)"}],"history":{"pools":17,"firstTime":1786111069,"lastTime":1786945462},"pools":[{"id":"0x872778370dfcd21b41f9ebb70e0999d697e7e8cf544f8d7a6c8b16d2fa2b1799","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0x98d8E3498c7F9a1A177CB8203bD17D785080d68D","fee":10000,"tickSpacing":200,"hooks":"0xb216070c3509047ea597E2E626A29cea427a60C8"},"symbols":["ETH","HNY"],"state":{"sqrtP":"1861994924865627230626313230858997","tick":201306,"protocolFee":0,"lpFee":10000,"liquidity":"41481286134060108852408"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"882517464264084","paid":"882517464264084","got":"482326805662663808096285","expected":"482326805662663808096285","feePpm":10000,"takePpm":0},{"zeroForOne":false,"ok":true,"amountIn":"487439957001481769986852","paid":"487439957001481769986852","got":"873260025908618","expected":"873260025908618","feePpm":10000,"takePpm":0}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-6014144748306","-3383991701237952902415"],"removed":["6014144748305","3383991701237952902414"]}},{"id":"0x223a4e9102578b85b9745011d4fab62729adb2d3c8dd817d978da7b911dcbaaf","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0xA93b10048320FCfe10855327CDE8343A8c1F53ba","fee":10000,"tickSpacing":200,"hooks":"0xb216070c3509047ea597E2E626A29cea427a60C8"},"symbols":["ETH","BURN"],"state":{"sqrtP":"1783054175626210985932871149542246","tick":200440,"protocolFee":0,"lpFee":10000,"liquidity":"60149327518381295140684"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"1336336484020842","paid":"1336336484020842","got":"669739645032783363772144","expected":"669739645032783363772144","feePpm":10000,"takePpm":0},{"zeroForOne":false,"ok":true,"amountIn":"676839561774823385682734","paid":"676839561774823385682734","got":"1322318571487747","expected":"1322318571487747","feePpm":10000,"takePpm":0}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-9963186549699","-4263974991424442239271"],"removed":["9963186549698","4263974991424442239270"]}}],"openCallbacks":[],"checks":[{"id":"01","title":"Permissions that touch your money","status":"caution","detail":"The address enables before 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":"A swap through it pays the pool fee and nothing else."},{"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 1%, written in the pool key."},{"id":"05","title":"No one holds the switch","status":"caution","detail":"No owner() but it has setProgramConfig, claim, transferProgramOwnership, setRecipient, setProgramOperator."},{"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":"17 pools over 73 days."}],"score":80,"verdict":"caution"}