{"hook":"0x7D9DC03B5dB5434507f33730BB4ce78029Ea60cc","block":93395330,"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":5128,"selectors":["0x36584342","0x36ebd86f","0x402914f5","0x481c6a75","0x575e24b4","0x91dd7346","0xb47b2fb1","0xc34c08e5","0xd294f093","0xdc98354e","0xddbfd8ef","0xfdf262b7"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":4,"addresses":[]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0x36584342","name":"register((address,address,uint24,int24,address),address,address,uint16)"},{"selector":"0x36ebd86f","name":"feeLiability()"},{"selector":"0x402914f5","name":"claimable(address)"},{"selector":"0x481c6a75","name":"manager()"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x91dd7346","name":"unlockCallback(bytes)"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xc34c08e5","name":"executor()"},{"selector":"0xd294f093","name":"claimFees()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xddbfd8ef","name":"policies(bytes32)"},{"selector":"0xfdf262b7","name":"quoteAsset()"}],"history":{"pools":4,"firstTime":1790545846,"lastTime":1790599708},"pools":[{"id":"0xb989e281cfdedad591a89bd09d103d37c31d4ddcb2a71c81738df86d9c3fd79c","key":{"currency0":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","currency1":"0xc6909666BD21C65501cEfdF8B4300E2a7c4034B7","fee":0,"tickSpacing":1,"hooks":"0x7D9DC03B5dB5434507f33730BB4ce78029Ea60cc"},"symbols":["USDG","TESTRH"],"state":{"sqrtP":"1392775248440858210214311548563034902229","tick":471823,"protocolFee":0,"lpFee":0,"liquidity":"56884803006119624"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"1000","paid":"1000","got":"305847727831057931448986","expected":"308936144395866844635144","feePpm":0,"takePpm":9997},{"zeroForOne":false,"ok":false,"why":"thin","reason":"too little liquidity to measure"}],"roundTrip":{"ok":true,"lossPpm":100000,"added":["-10","-2956945961162122078359"],"removed":["9","2956945961162122078358"]}},{"id":"0x9a8f30a0d0f859bc99d87f3abb1bece6fd7e140d45db2138022ee524b3bd95de","key":{"currency0":"0x128d15E80a16cc21f4E4B4EB6E5D6CE31E62416C","currency1":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","fee":0,"tickSpacing":1,"hooks":"0x7D9DC03B5dB5434507f33730BB4ce78029Ea60cc"},"symbols":["ATCAL","USDG"],"state":{"sqrtP":"15774364960037643688","tick":-446767,"protocolFee":0,"lpFee":0,"liquidity":"56884803006119624"},"swaps":[{"zeroForOne":true,"ok":false,"why":"thin","reason":"too little liquidity to measure"},{"zeroForOne":false,"ok":true,"amountIn":"1000","paid":"1000","got":"24467519266474092735752","expected":"25224179857839656320581","feePpm":0,"takePpm":29998}],"roundTrip":{"ok":true,"lossPpm":29412,"added":["-845142195120737726346","-34"],"removed":["845142195120737726345","33"]}}],"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":"caution","detail":"It takes 3.00% of each swap on top of the pool fee."},{"id":"03","title":"LPs can get out","status":"fail","detail":"Taking liquidity straight back out lost 10%."},{"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 claimable, claimFees."},{"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":"4 pools over 22 days."}],"score":60,"verdict":"danger"}