{"hook":"0x992118dE23b4eBE9F527dacbbb7D8D4bBbf8E044","block":92972633,"bits":8260,"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":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":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":15228,"selectors":["0x06ec16f8","0x21d0ee70","0x259982e5","0x2ce0f9d6","0x42f6aba7","0x55d1cb60","0x575e24b4","0x68a4c8b7","0x6c2bbe7e","0x6fe7e6eb","0x7564912b","0x91dd7346","0x986bf751","0x9f063efc","0xb47b2fb1","0xb6a8b0fa","0xc45a0155","0xc4e833ce","0xdc4c90d3","0xdc98354e","0xe1b4af69"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":20,"addresses":["0xFFFD8963efd1FC6a506488495d951D5163961682","0xfFfD8963eFD1FC6A506488495D951d5263988d26"]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0x06ec16f8","name":"collect(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":"0x2ce0f9d6","name":"principal(address)"},{"selector":"0x42f6aba7","name":"register((address,address,uint24,int24,address),address,uint256,uint256,uint256)"},{"selector":"0x55d1cb60","name":"poolKey(address)"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x68a4c8b7","name":"isGraduated(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":"0x7564912b","name":"markets(bytes32)"},{"selector":"0x91dd7346","name":"unlockCallback(bytes)"},{"selector":"0x986bf751","name":"compound(address,uint256,uint256,uint128)"},{"selector":"0x9f063efc","name":"afterAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,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":"0xc45a0155","name":null},{"selector":"0xc4e833ce","name":"getHookPermissions()"},{"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)"}],"history":{"pools":544,"firstTime":1791917097,"lastTime":1792426664},"pools":[{"id":"0x205049c943c8b0990302c3afece725beb942533b3ed8615daaeffe10f4c152c5","key":{"currency0":"0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73","currency1":"0xBe8184991626C7F372a217C684d239a150E43e88","fee":0,"tickSpacing":200,"hooks":"0x992118dE23b4eBE9F527dacbbb7D8D4bBbf8E044"},"symbols":["WETH","LIL"],"state":{"sqrtP":"21221035126792552904428569174474787","tick":249975,"protocolFee":0,"lpFee":0,"liquidity":"372898290296219071556075"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"696102856631612","paid":"696102856631612","got":"47918312678157537129637261","expected":"49914909039747434510038813","feePpm":0,"takePpm":40000},{"zeroForOne":false,"ok":true,"amountIn":"30066752831927455539994289","paid":"30066752831927455539994289","got":"402210203333731","expected":"418968961805969","feePpm":0,"takePpm":40000}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-4276875229130","-380059692803192336374199"],"removed":["4276875229129","380059692803192336374198"]}},{"id":"0xcf9b5ccecdbf0e0be99e013cf062228c48d070d33f56062ea00ca6f0ba80ea65","key":{"currency0":"0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73","currency1":"0xDC393Ae3fa7EBd073fBacB120F35Ad7769a12ea9","fee":0,"tickSpacing":200,"hooks":"0x992118dE23b4eBE9F527dacbbb7D8D4bBbf8E044"},"symbols":["WETH","HYPE"],"state":{"sqrtP":"21221040881562481007621987158657650","tick":249975,"protocolFee":0,"lpFee":0,"liquidity":"372898290296219071556075"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"696102667860862","paid":"696102667860862","got":"47918325672757565043729135","expected":"49914922575789130253884515","feePpm":0,"takePpm":40000},{"zeroForOne":false,"ok":true,"amountIn":"30059981427040804855797605","paid":"30059981427040804855797605","got":"402119429808751","expected":"418874406050782","feePpm":0,"takePpm":40000}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-4276837474980","-380062401365146996647877"],"removed":["4276837474979","380062401365146996647876"]}}],"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 4% 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 collect."},{"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":"544 pools, first seen 6 days ago."}],"score":73,"verdict":"caution"}