{"hook":"0x2194C5d0169456be1603Df807974b1821231C8c4","block":93176297,"bits":2244,"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":false},{"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":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":false},{"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":18298,"selectors":["0xe1b4af69","0xe2c1d1d1","0xfa461e33","0xfbfa77cf","0xfc6fe14e","0xff27b300","0xd2128db5","0xdc4c90d3","0xdc98354e","0xdcf6836b","0xde90e29b","0xad5c4648","0xb13e0cf0","0xb47b2fb1","0xb6a8b0fa","0xc45a0155","0xc4e833ce","0x91dd7346","0x9f063efc","0xa6a0657c","0xa71eeac4","0xad449a97","0x6c2bbe7e","0x6fe7e6eb","0x72aa4f07","0x766fcc67","0x876a772b","0x8ada032e","0x4bf3d25c","0x4df8ccb1","0x4e6189d0","0x54b9c343","0x575e24b4","0x249d39e9","0x259982e5","0x32e1f7a8","0x353c0970","0x49c4a7b0","0x0885f732","0x08bd1a85","0x0d783d4f","0x2161944f","0x21d0ee70"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":13,"addresses":["0x1f7d7550B1b028f7571E69A784071F0205FD2EfA","0x89e5DB8B5aA49aA85AC63f691524311AEB649eba","0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73","0xfFfD8963eFD1FC6A506488495D951d5263988d26","0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","0xaF3D76f1834A1d425780943C99Ea8A608f8a93f9","0x322F0929c4625eD5bAd873c95208D54E1c003b2d","0xd0601CE157Db5bdC3162BbaC2a2C8aF5320D9EEC","0x117cc2133c37B721F49dE2A7a74833232B3B4C0C","0x0BD7D308f8E1639FAb988dF18A8011F41Eacad72"]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0xe1b4af69","name":"afterDonate(address,(address,address,uint24,int24,address),uint256,uint256,bytes)"},{"selector":"0xe2c1d1d1","name":"TWAP_WINDOW()"},{"selector":"0xfa461e33","name":"uniswapV3SwapCallback(int256,int256,bytes)"},{"selector":"0xfbfa77cf","name":"vault()"},{"selector":"0xfc6fe14e","name":"maxCreatorBps()"},{"selector":"0xff27b300","name":"vaultBps()"},{"selector":"0xd2128db5","name":"registerPoolWithQuote((address,address,uint24,int24,address),address,address,bool)"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xdcf6836b","name":"quoteIsCurrency0(bytes32)"},{"selector":"0xde90e29b","name":"creatorBps()"},{"selector":"0xad5c4648","name":"WETH()"},{"selector":"0xb13e0cf0","name":"owedFees(bytes32,address)"},{"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":"0xc45a0155","name":null},{"selector":"0xc4e833ce","name":"getHookPermissions()"},{"selector":"0x91dd7346","name":"unlockCallback(bytes)"},{"selector":"0x9f063efc","name":"afterAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0xa6a0657c","name":null},{"selector":"0xa71eeac4","name":"registerPoolWithCreatorBps((address,address,uint24,int24,address),address,address,bool,uint256)"},{"selector":"0xad449a97","name":"sweepAccrued(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":"0x72aa4f07","name":"registerPool((address,address,uint24,int24,address),address,address)"},{"selector":"0x766fcc67","name":"vaultAccrued(address)"},{"selector":"0x876a772b","name":null},{"selector":"0x8ada032e","name":"V2_ROUTER()"},{"selector":"0x4bf3d25c","name":"openTrading((address,address,uint24,int24,address))"},{"selector":"0x4df8ccb1","name":"platformOwner()"},{"selector":"0x4e6189d0","name":null},{"selector":"0x54b9c343","name":"ownerBps()"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x249d39e9","name":"BPS()"},{"selector":"0x259982e5","name":"beforeAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),bytes)"},{"selector":"0x32e1f7a8","name":null},{"selector":"0x353c0970","name":"MAX_TOTAL_BPS()"},{"selector":"0x49c4a7b0","name":"poolCreatorBps(bytes32)"},{"selector":"0x0885f732","name":"poolConfig(bytes32)"},{"selector":"0x08bd1a85","name":"V3_FACTORY()"},{"selector":"0x0d783d4f","name":"sweepFees((address,address,uint24,int24,address))"},{"selector":"0x2161944f","name":"MIN_OUT_BPS()"},{"selector":"0x21d0ee70","name":"beforeRemoveLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),bytes)"}],"history":{"pools":7,"firstTime":1792049219,"lastTime":1792393663},"pools":[{"id":"0x35eba365a1df51c9f1a81d0883d3630860f376c2f22a5b5187cf6b9b7b65da1d","key":{"currency0":"0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73","currency1":"0xcC5a84FF50065D9DE1B1f0329EBA3679fBD9947e","fee":0,"tickSpacing":1,"hooks":"0x2194C5d0169456be1603Df807974b1821231C8c4"},"symbols":["WETH","CCAT"],"state":{"sqrtP":"2241925116292233740452353201342617","tick":205020,"protocolFee":0,"lpFee":0,"liquidity":"35269662451568990362767"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"8156146691542","paid":"8156146691542","got":"6449147766698257622380","expected":"6530782548555197592283","feePpm":0,"takePpm":12500},{"zeroForOne":false,"ok":true,"amountIn":"5944060025758392735603","paid":"5944060025758392735603","got":"7330518040354","expected":"7423309407953","feePpm":0,"takePpm":12500}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-3686388679090","-2952008948946935387399"],"removed":["3686388679089","2952008948946935387398"]}},{"id":"0x525e5eae84d1b1484ccc587a467a0e440e1a87d2e5210303b926a299bcd56d28","key":{"currency0":"0x1b0E319c6A659F002271B69dB8A7df2F911c153E","currency1":"0x7ae606eDd6d766FA7432dCD72Cc3f32fB4CA1A30","fee":0,"tickSpacing":1,"hooks":"0x2194C5d0169456be1603Df807974b1821231C8c4"},"symbols":["GME","BUY"],"state":{"sqrtP":"220585126144405682463663355566853","tick":158642,"protocolFee":0,"lpFee":0,"liquidity":"353579347078260546269203"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"117935936634416","paid":"117935936634416","got":"902767974201722699740","expected":"914195416913136911129","feePpm":0,"takePpm":12500},{"zeroForOne":false,"ok":true,"amountIn":"11390791703816663083502","paid":"11390791703816663083502","got":"1451084512369523","expected":"1469452670753947","feePpm":0,"takePpm":12500}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-375881985622285","-2909633148941473343072"],"removed":["375881985622284","2909633148941473343071"]}}],"openCallbacks":[],"checks":[{"id":"01","title":"Permissions that touch your money","status":"caution","detail":"The address enables 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 1.25% 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":"No owner() but it has sweepAccrued, sweepFees."},{"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":"caution","detail":"7 pools, first seen 4 days ago."}],"score":73,"verdict":"caution"}