{"hook":"0xB267a0E6FE2794010102E7cA7d50e82D2b182800","block":93176464,"bits":10240,"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":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":false},{"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":false},{"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":false},{"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":6191,"selectors":["0xc45a0155","0xd4130486","0xdbdcc68f","0xdc4c90d3","0xdc98354e","0xf9948947","0x89b9fe8f","0x8a2be940","0x8fd1d36e","0xa3f4bac7","0xb69a12d1","0xbc234eb7","0x3dc4487e","0x4521788c","0x4d78d40b","0x64a8b121","0x6be4e31f","0x866dc50c","0x057d360d","0x1057d40f","0x1b9ccb7f","0x259982e5","0x31d04a19","0x35030b7a"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":0,"addresses":["0xfFfD8963eFD1FC6A506488495D951d5263988d26"]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0xc45a0155","name":null},{"selector":"0xd4130486","name":"factoryVersion()"},{"selector":"0xdbdcc68f","name":"MIN_CANONICAL_POOL_FEE_PIPS()"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xf9948947","name":"registerPool((address,address,uint24,int24,address),uint160,address,uint256)"},{"selector":"0x89b9fe8f","name":"MIN_EXCLUSIVITY_BLOCKS()"},{"selector":"0x8a2be940","name":"registration(bytes32)"},{"selector":"0x8fd1d36e","name":"releaseActivationBlock()"},{"selector":"0xa3f4bac7","name":"ALL_HOOK_MASK()"},{"selector":"0xb69a12d1","name":"permissionBitmap()"},{"selector":"0xbc234eb7","name":"hookPermissions()"},{"selector":"0x3dc4487e","name":"MIN_CANONICAL_POOL_TICK_SPACING()"},{"selector":"0x4521788c","name":"MAX_CANONICAL_POOL_TICK_SPACING()"},{"selector":"0x4d78d40b","name":"releaseId()"},{"selector":"0x64a8b121","name":"EXPECTED_PERMISSION_BITMAP()"},{"selector":"0x6be4e31f","name":"MAX_EXCLUSIVITY_BLOCKS()"},{"selector":"0x866dc50c","name":"expectedChainId()"},{"selector":"0x057d360d","name":"arbSysRuntimeCodeHash()"},{"selector":"0x1057d40f","name":"arbSys()"},{"selector":"0x1b9ccb7f","name":"factoryRuntimeCodeHash()"},{"selector":"0x259982e5","name":"beforeAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),bytes)"},{"selector":"0x31d04a19","name":"MAX_CANONICAL_POOL_FEE_PIPS()"},{"selector":"0x35030b7a","name":"poolManagerRuntimeCodeHash()"}],"history":{"pools":6,"firstTime":1787881467,"lastTime":1788814533},"pools":[{"id":"0x80af3c27047c92f2e4ab32b7761be8fe3fa04a7fc2d74cb615160507f295c0fa","key":{"currency0":"0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73","currency1":"0x2e58e0b45AC46D2DC4113E79DB7A4571D09ECFfa","fee":20000,"tickSpacing":200,"hooks":"0xB267a0E6FE2794010102E7cA7d50e82D2b182800"},"symbols":["WETH","WOBIN"],"state":{"sqrtP":"2540543269646006895076156569954262","tick":207521,"protocolFee":0,"lpFee":20000,"liquidity":"8143621363060136443437"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"126981532752454","paid":"126981532752454","got":"127893335233290976946231","expected":"127893335233290976946231","feePpm":20000,"takePpm":0},{"zeroForOne":false,"ok":true,"amountIn":"130567349966894391358485","paid":"130567349966894391358485","got":"124380955429244","expected":"124380955429244","feePpm":20000,"takePpm":0}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-847066557342","-925219677802777438019"],"removed":["847066557341","925219677802777438018"]}},{"id":"0x5e20ad101c4d86ae3b510ac707be22bf2dd1c9aafd5e32f86b63e006bd03b60e","key":{"currency0":"0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73","currency1":"0x26290122bD95cc88936afa68827B29424525899A","fee":20000,"tickSpacing":200,"hooks":"0xB267a0E6FE2794010102E7cA7d50e82D2b182800"},"symbols":["WETH","RCAT"],"state":{"sqrtP":"13499347993078152268580350022285265","tick":240928,"protocolFee":0,"lpFee":20000,"liquidity":"4207448509019232222745"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"12346833877232","paid":"12346833877232","got":"351103652020242191376570","expected":"351103652020242191376570","feePpm":20000,"takePpm":0},{"zeroForOne":false,"ok":true,"amountIn":"358444584499750877263273","paid":"358444584499750877263273","got":"12093971153822","expected":"12093971153822","feePpm":20000,"takePpm":0}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-81534793323","-2563977915477977167263"],"removed":["81534793322","2563977915477977167262"]}}],"openCallbacks":[],"checks":[{"id":"01","title":"Permissions that touch your money","status":"pass","detail":"None of the permissions that let a hook take from swaps or from LPs are switched on."},{"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":"caution","detail":"A fixed fee, but a high one: 2%."},{"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":"6 pools over 53 days."}],"score":98,"verdict":"caution"}