{"hook":"0x6CE36c926a29C7c0F36A18F259FBe49BeD13a0cc","block":93363267,"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":18949,"selectors":["0x01099984","0x16eebd1e","0x1d8ef3ef","0x3b14a781","0x575e24b4","0x578fd68b","0x715018a6","0x76e3b12e","0x79ba5097","0x7b103999","0x8080da69","0x85ec9bd9","0x891ebbac","0x8cebd942","0x8da5cb5b","0x91dd7346","0xa1306fe0","0xb47b2fb1","0xb738d2cc","0xccdd1429","0xcfd6d5e9","0xd63b8a78","0xdc4c90d3","0xdc98354e","0xe30c3978","0xeca9ad5d","0xedd6d1f6","0xef635c0e","0xf2fde38b","0xf4c094c8","0xff94e4f3"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":30,"addresses":["0xffFf000000000000000000000000000000000000","0xfFfd8963EFd1fC6A506488495d951d5263988d25"]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":"0xd51778f6238560d8442a3D868C7a2bDED13626F9","functions":[{"selector":"0x01099984","name":"harvest((address,address,uint24,int24,address))"},{"selector":"0x16eebd1e","name":"launcher()"},{"selector":"0x1d8ef3ef","name":"currentFeeBps(bytes32)"},{"selector":"0x3b14a781","name":"claimPartnerFees(bytes32,address,address)"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x578fd68b","name":"harvestSlippageBps()"},{"selector":"0x715018a6","name":"renounceOwnership()"},{"selector":"0x76e3b12e","name":"flywheel(bytes32)"},{"selector":"0x79ba5097","name":"acceptOwnership()"},{"selector":"0x7b103999","name":"registry()"},{"selector":"0x8080da69","name":"flywheelRegistered(bytes32)"},{"selector":"0x85ec9bd9","name":"setCreator(bytes32,address)"},{"selector":"0x891ebbac","name":"minHarvestWeth()"},{"selector":"0x8cebd942","name":"poolInfo(bytes32)"},{"selector":"0x8da5cb5b","name":"owner()"},{"selector":"0x91dd7346","name":"unlockCallback(bytes)"},{"selector":"0xa1306fe0","name":"registerFlywheel((address,address,uint24,int24,address),(uint16,uint16,uint16,uint16,uint16))"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xb738d2cc","name":"claimProtocolFees(bytes32,address)"},{"selector":"0xccdd1429","name":"flywheelPendingWeth(bytes32)"},{"selector":"0xcfd6d5e9","name":"keeperRewardBps()"},{"selector":"0xd63b8a78","name":"setHarvestParams(uint16,uint128,uint16)"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xe30c3978","name":"pendingOwner()"},{"selector":"0xeca9ad5d","name":"feeBalances(bytes32,address)"},{"selector":"0xedd6d1f6","name":"claimCreatorFees(bytes32,address,address)"},{"selector":"0xef635c0e","name":"register((address,address,uint24,int24,address),(address,address,address,uint16,uint40,uint160,(uint8,uint16,uint8,uint16,uint32,uint32,uint16,uint16,uint16,uint256,uint256)))"},{"selector":"0xf2fde38b","name":"transferOwnership(address)"},{"selector":"0xf4c094c8","name":"setLauncher(address)"},{"selector":"0xff94e4f3","name":"creatorOf(bytes32)"}],"history":{"pools":4,"firstTime":1784090684,"lastTime":1784137994},"pools":[{"id":"0x74730cb129aa0a65358a5833174d25ada5621b6ea36d58bfaa2c6d706d81810b","key":{"currency0":"0x08311116b264dE1C8566dcF93867Ac61dcBE4663","currency1":"0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73","fee":0,"tickSpacing":60,"hooks":"0x6CE36c926a29C7c0F36A18F259FBe49BeD13a0cc"},"symbols":["IMG","WETH"],"state":{"sqrtP":"1628651828719166000461009","tick":-215858,"protocolFee":0,"lpFee":0,"liquidity":"3041914279176288473021"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"41672257001700595607273","paid":"41672257001700595607273","got":"16548168211466","expected":"17604434267516","feePpm":0,"takePpm":60000},{"zeroForOne":false,"ok":true,"amountIn":"29323921089989","paid":"29323921089989","got":"65202036461065133949168","expected":"69361917799862244946371","feePpm":0,"takePpm":59974}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-464207720529076467041","-191625946404"],"removed":["464207720529076467040","191625946403"]}},{"id":"0xdd7a330ac64ecd2105071450c4022ecd12bc49a460a20e3216bc9c1cf7c99f3a","key":{"currency0":"0x0A3356e0D416e68a93Bac184D25413589D8e4663","currency1":"0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73","fee":0,"tickSpacing":60,"hooks":"0x6CE36c926a29C7c0F36A18F259FBe49BeD13a0cc"},"symbols":["PONZI","WETH"],"state":{"sqrtP":"4355345924607543517206830","tick":-196184,"protocolFee":0,"lpFee":0,"liquidity":"60741540782565331063293"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"228396305827613082746244","paid":"228396305827613082746244","got":"655554890682127","expected":"690057779665396","feePpm":0,"takePpm":50000},{"zeroForOne":false,"ok":true,"amountIn":"1669547883646164","paid":"1669547883646164","got":"524602193206072727495762","expected":"552199036532097683678051","feePpm":0,"takePpm":49977}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-3498258315515837476666","-10135733183316"],"removed":["3498258315515837476665","10135733183315"]}}],"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 6% 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 0xd51778f6238560d8442a3D868C7a2bDED13626F9. Owner-style functions: claimPartnerFees, setCreator, claimProtocolFees, setHarvestParams, claimCreatorFees, 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":"4 pools over 97 days."}],"score":75,"verdict":"caution"}