{"hook":"0x11339Fd1041614Ea6e24D2B5D019fC5054256deC","block":93211076,"bits":11756,"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":true},{"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":true},{"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":true},{"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":11946,"selectors":["0x161faa60","0x21d0ee70","0x259982e5","0x28659dbd","0x424ecd7c","0x42e4e5ca","0x49124af5","0x575e24b4","0x61d027b3","0x6236ede4","0x6c2bbe7e","0x6fe7e6eb","0x791b98bc","0x7b103999","0x808342f8","0x81140128","0x88f973f0","0x95995767","0x98d15e13","0x9f063efc","0xb3959a85","0xb47b2fb1","0xb6a8b0fa","0xb996be53","0xbf7e214f","0xc4e833ce","0xcd152821","0xd73792a9","0xdc4c90d3","0xdc98354e","0xe1b4af69","0xe55a9d50","0xed1d58fb","0xf8717436"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":3,"addresses":[]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0x161faa60","name":"getSwapFee(bytes32,bool)"},{"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":"0x28659dbd","name":"batchSetDirectionalFees((bytes32,uint24,uint24,uint64)[])"},{"selector":"0x424ecd7c","name":"platformShareVersion()"},{"selector":"0x42e4e5ca","name":"setPoolConfig(bytes32,uint24,uint24,uint64)"},{"selector":"0x49124af5","name":"setDirectionalFees(bytes32,uint24,uint24,uint64)"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x61d027b3","name":"treasury()"},{"selector":"0x6236ede4","name":"setPlatformShare(uint24,uint64)"},{"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":"0x791b98bc","name":"positionManager()"},{"selector":"0x7b103999","name":"registry()"},{"selector":"0x808342f8","name":"protocolAccessManager()"},{"selector":"0x81140128","name":"quoteDonation((address,address,uint24,int24,address),uint256,uint256)"},{"selector":"0x88f973f0","name":"donationRouter()"},{"selector":"0x95995767","name":"applyDirectionalFeeUpdateFromBatch(bytes32,uint24,uint24,uint64)"},{"selector":"0x98d15e13","name":"platformShare()"},{"selector":"0x9f063efc","name":"afterAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0xb3959a85","name":"getPoolFeeState(bytes32)"},{"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":"0xbf7e214f","name":"authority()"},{"selector":"0xc4e833ce","name":"getHookPermissions()"},{"selector":"0xcd152821","name":"effectiveConfig(bytes32)"},{"selector":"0xd73792a9","name":"FEE_DENOMINATOR()"},{"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":"0xe55a9d50","name":"DEFAULT_PLATFORM_SHARE()"},{"selector":"0xed1d58fb","name":"initializePoolConfig(bytes32)"},{"selector":"0xf8717436","name":"initialLiquidityAdded(bytes32)"}],"history":{"pools":6,"firstTime":1790034374,"lastTime":1790062653},"pools":[{"id":"0xc99650f31ca68a4093e2114418e7e0a2c99c71672a4629a729041378b22a0b3d","key":{"currency0":"0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73","currency1":"0xd0601CE157Db5bdC3162BbaC2a2C8aF5320D9EEC","fee":8388608,"tickSpacing":10,"hooks":"0x11339Fd1041614Ea6e24D2B5D019fC5054256deC"},"symbols":["WETH","NVDA"],"state":{"sqrtP":"263736315126159037629810090850","tick":24053,"protocolFee":0,"lpFee":0,"liquidity":"34693151935099332"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"464072281308","paid":"464072281308","got":"5139631586366","expected":"5142176648946","feePpm":0,"takePpm":495},{"zeroForOne":false,"ok":true,"amountIn":"9294734873175","paid":"9294734873175","got":"838313305587","expected":"838728409876","feePpm":0,"takePpm":495}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-31125811818","-343295466625"],"removed":["31125811817","343295466624"]}},{"id":"0x8ccf4dd274c2113013a717c2f7d89cc5900f7f1b49952f9715cd185dea8376a8","key":{"currency0":"0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73","currency1":"0xCEC185eB182c47d1bA1EFc84e6959e18cd620Be4","fee":8388608,"tickSpacing":10,"hooks":"0x11339Fd1041614Ea6e24D2B5D019fC5054256deC"},"symbols":["WETH","cbBTC"],"state":{"sqrtP":"138273639888975168434840","tick":-265186,"protocolFee":0,"lpFee":0,"liquidity":"17903219720"},"swaps":[{"zeroForOne":true,"ok":false,"why":"thin","reason":"too little liquidity to measure"},{"zeroForOne":false,"ok":true,"amountIn":"1000","paid":"1000","got":"317509209407878","expected":"318125767854749","feePpm":0,"takePpm":1939}],"roundTrip":{"ok":true,"lossPpm":20,"added":["-17083795909959020","-51966"],"removed":["17083795909959019","51965"]}}],"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.19% 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":"caution","detail":"No owner() but it has setPoolConfig, setDirectionalFees, setPlatformShare."},{"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":"6 pools over 28 days."}],"score":85,"verdict":"caution"}