{"hook":"0x18327b9dCF924F6846873c4A9A9D7cF8702760cC","block":93459597,"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":20043,"selectors":["0x07eff0dd","0x20b6b2fc","0x21d0ee70","0x259982e5","0x36f01fcc","0x3ae8afed","0x3ca4422c","0x3fc8cef3","0x4302885d","0x4506876f","0x575e24b4","0x605b664b","0x6c2bbe7e","0x6fe7e6eb","0x79c76e1a","0x91dd7346","0x96fd1c42","0x9f063efc","0xaf576120","0xb47b2fb1","0xb6a8b0fa","0xc4e833ce","0xce0e2ca8","0xd595408a","0xdb9416a3","0xdc4c90d3","0xdc98354e","0xe1b4af69","0xf50517ab"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":6,"addresses":["0x85715BbE2707476294B0c20B7DfbE32cCcADD0E1","0xfFfFFFFfFF000000000000000000000000000000"]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0x07eff0dd","name":"MIN_TICK_SPACING()"},{"selector":"0x20b6b2fc","name":"pendingRevenue(address)"},{"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":"0x36f01fcc","name":"PULP()"},{"selector":"0x3ae8afed","name":"cumulativeRevenueByPool(bytes32)"},{"selector":"0x3ca4422c","name":"HOOK_PERMISSIONS()"},{"selector":"0x3fc8cef3","name":"weth()"},{"selector":"0x4302885d","name":"shred()"},{"selector":"0x4506876f","name":"previewFees((address,address,uint24,int24,address),(bool,int256,uint160))"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x605b664b","name":"cumulativeRevenueByAsset(address)"},{"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":"0x79c76e1a","name":"flush(address)"},{"selector":"0x91dd7346","name":"unlockCallback(bytes)"},{"selector":"0x96fd1c42","name":"flush(address,uint256)"},{"selector":"0x9f063efc","name":"afterAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0xaf576120","name":"quoteCurrency(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":"0xc4e833ce","name":"getHookPermissions()"},{"selector":"0xce0e2ca8","name":"MAX_TOTAL_FEE_PIPS()"},{"selector":"0xd595408a","name":"getPoolState(bytes32)"},{"selector":"0xdb9416a3","name":"totalRevenueByPool(bytes32)"},{"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":"0xf50517ab","name":"previewFeeQuote((address,address,uint24,int24,address),(bool,int256,uint160))"}],"history":{"pools":3,"firstTime":1790802953,"lastTime":1790802953},"pools":[{"id":"0xe576b8be706545294d47b33988556a4dabf38dbd9888c3adb9137832b60737f3","key":{"currency0":"0x1B5A5cf37A8E86C8328F5BB0bc40E5B05AB31cc9","currency1":"0xd0601CE157Db5bdC3162BbaC2a2C8aF5320D9EEC","fee":8388608,"tickSpacing":60,"hooks":"0x18327b9dCF924F6846873c4A9A9D7cF8702760cC"},"symbols":["SHRED","NVDA"],"state":{"sqrtP":"4254982128559468716828187","tick":-196650,"protocolFee":0,"lpFee":0,"liquidity":"4252714122414985516055"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"29950814321384516958942","paid":"29950814321384516958942","got":"86137920334636","expected":"86353652977478","feePpm":0,"takePpm":2499},{"zeroForOne":false,"ok":true,"amountIn":"85029015974709","paid":"85029015974709","got":"29395640646473768782436","expected":"29469256981443869225738","feePpm":0,"takePpm":2499}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-245444854447683992579","-708455179545"],"removed":["245444854447683992578","708455179544"]}},{"id":"0xeddb1496eee9d7fecc95eb61ff496deeec8b29674f071936225c111e962c079a","key":{"currency0":"0x1B5A5cf37A8E86C8328F5BB0bc40E5B05AB31cc9","currency1":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","fee":8388608,"tickSpacing":60,"hooks":"0x18327b9dCF924F6846873c4A9A9D7cF8702760cC"},"symbols":["SHRED","USDG"],"state":{"sqrtP":"62416685750014048687","tick":-419257,"protocolFee":0,"lpFee":0,"liquidity":"64391997846593150"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"24266334430331554646451","paid":"24266334430331554646451","got":"15019","expected":"15056","feePpm":0,"takePpm":2458},{"zeroForOne":false,"ok":true,"amountIn":"23013","paid":"23013","got":"36969074580803004104086","expected":"37062441343997233239230","feePpm":0,"takePpm":2520}],"roundTrip":{"ok":true,"lossPpm":6411,"added":["-255920731243057056195","-156"],"removed":["255920731243057056194","155"]}}],"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.25% on top of the pool fee."},{"id":"03","title":"LPs can get out","status":"caution","detail":"Taking liquidity straight back out lost 0.64%."},{"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":"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":"3 pools over 19 days."}],"score":85,"verdict":"caution"}