{"hook":"0x4e44aeCE0b745E37BBD9C880C6B5Fddb3136B8CC","block":92977601,"bits":14540,"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":true},{"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":6410,"selectors":["0x07ef2190","0x163db71b","0x1d8ef3ef","0x21d0ee70","0x259982e5","0x3fc8cef3","0x479dfd7b","0x4d6a631b","0x4d7c90bc","0x575e24b4","0x5bb47808","0x5c12f040","0x6c2bbe7e","0x6fe7e6eb","0x785ffb37","0x853a65f9","0x92eefe9b","0x992d1976","0x9c6b88a8","0x9f063efc","0xa6aa80a7","0xb47b2fb1","0xb6a8b0fa","0xb996be53","0xc45a0155","0xc4e833ce","0xd246637b","0xd3631fa5","0xd73792a9","0xdc4c90d3","0xdc98354e","0xdfc90cf2","0xe1b4af69","0xe906e958","0xf77c4791","0xfac2e984","0xfe2b214c"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":3,"addresses":[]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0x07ef2190","name":"poolConfigs(bytes32)"},{"selector":"0x163db71b","name":"totalDistributions()"},{"selector":"0x1d8ef3ef","name":"currentFeeBps(bytes32)"},{"selector":"0x21d0ee70","name":"beforeRemoveLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),bytes)"},{"selector":"0x259982e5","name":"beforeAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),bytes)"},{"selector":"0x3fc8cef3","name":"weth()"},{"selector":"0x479dfd7b","name":"CREATOR_SHARE_BPS()"},{"selector":"0x4d6a631b","name":"MIN_DECAY_SECONDS()"},{"selector":"0x4d7c90bc","name":"MAX_START_BPS()"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x5bb47808","name":"setFactory(address)"},{"selector":"0x5c12f040","name":"emergencyWithdraw(bool)"},{"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":"0x785ffb37","name":"THRESHOLD()"},{"selector":"0x853a65f9","name":"platformFeeCollector()"},{"selector":"0x92eefe9b","name":"setController(address)"},{"selector":"0x992d1976","name":"MIN_END_BPS()"},{"selector":"0x9c6b88a8","name":"getPoolId((address,address,uint24,int24,address))"},{"selector":"0x9f063efc","name":"afterAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0xa6aa80a7","name":"configureHook(bytes32,address,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":"0xb996be53","name":"isConfigured(bytes32)"},{"selector":"0xc45a0155","name":null},{"selector":"0xc4e833ce","name":"getHookPermissions()"},{"selector":"0xd246637b","name":"MAX_DECAY_SECONDS()"},{"selector":"0xd3631fa5","name":"totalPlatformFees()"},{"selector":"0xd73792a9","name":"FEE_DENOMINATOR()"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xdfc90cf2","name":"setPlatformFeeCollector(address)"},{"selector":"0xe1b4af69","name":"afterDonate(address,(address,address,uint24,int24,address),uint256,uint256,bytes)"},{"selector":"0xe906e958","name":"MIN_GAS_FOR_DISTRIBUTION()"},{"selector":"0xf77c4791","name":"controller()"},{"selector":"0xfac2e984","name":"executeDistribution((address,address,uint24,int24,address))"},{"selector":"0xfe2b214c","name":"totalCreatorFees()"}],"history":{"pools":35,"firstTime":1783986545,"lastTime":1784080229},"pools":[{"id":"0x07c4ac40d5de1b68445edf9b65497cd33e13ff4ae8c1375e0aed18c569d6bdb2","key":{"currency0":"0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73","currency1":"0x1CFa2e3aBF0D80bB2608246e42E89D0a5850c003","fee":10000,"tickSpacing":60,"hooks":"0x4e44aeCE0b745E37BBD9C880C6B5Fddb3136B8CC"},"symbols":["WETH","MEMECOINS"],"state":{"sqrtP":"1768412958781702784059492508723360","tick":200275,"protocolFee":0,"lpFee":10000,"liquidity":"44791179083942653308355"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"1003363721704718","paid":"1003363721704718","got":"494637315286644190068573","expected":"494637315286644190068573","feePpm":10000,"takePpm":0},{"zeroForOne":false,"ok":true,"amountIn":"59514768556639875519864","paid":"59514768556639875519864","got":"118256804616727","expected":"118256804616727","feePpm":10000,"takePpm":0}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-5976843959127","-3222178500211967766564"],"removed":["5976843959126","3222178500211967766563"]}},{"id":"0x06eb97849ab9e8c1bbb99c294c5ef32f7f3b299226659096bb979c31d4e03b17","key":{"currency0":"0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73","currency1":"0x6b1EE86236B0d824f308A4fE133158892c8B03B8","fee":10000,"tickSpacing":60,"hooks":"0x4e44aeCE0b745E37BBD9C880C6B5Fddb3136B8CC"},"symbols":["WETH","hank"],"state":{"sqrtP":"1765943034505281569036970988269914","tick":200247,"protocolFee":0,"lpFee":10000,"liquidity":"44791179083942653308355"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"685767267558537","paid":"685767267558537","got":"337178178383408509577292","expected":"337178178383408509577292","feePpm":10000,"takePpm":0},{"zeroForOne":false,"ok":true,"amountIn":"408604085657241594091449","paid":"408604085657241594091449","got":"813893827571352","expected":"813893827571352","feePpm":10000,"takePpm":0}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-6257513535201","-3082542773371727079161"],"removed":["6257513535200","3082542773371727079160"]}}],"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":"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 setFactory, emergencyWithdraw, setController, setPlatformFeeCollector."},{"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":"35 pools over 97 days."}],"score":88,"verdict":"caution"}