{"hook":"0x343fbe5E8CF1d05FD316Cc2c698fC91d003cc044","block":93086121,"bits":68,"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":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":2723,"selectors":["0x2c597de9","0x4a51608e","0x5442ece3","0x5bb47808","0x704b6c02","0xb47b2fb1","0xc05a81f5","0xc4084938","0xc45a0155","0xdc4c90d3","0xf851a440"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":1,"addresses":[]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0x2c597de9","name":"MAX_TAX_BPS()"},{"selector":"0x4a51608e","name":"cfg(bytes32)"},{"selector":"0x5442ece3","name":null},{"selector":"0x5bb47808","name":"setFactory(address)"},{"selector":"0x704b6c02","name":"setAdmin(address)"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xc05a81f5","name":"validAddress()"},{"selector":"0xc4084938","name":"hookFlags()"},{"selector":"0xc45a0155","name":null},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xf851a440","name":"admin()"}],"history":{"pools":11,"firstTime":1791510328,"lastTime":1792298327},"pools":[{"id":"0xf3e0bc98e90afe88f6adf698c4ab63be55637731d63168440db8a2788013d01c","key":{"currency0":"0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73","currency1":"0xdADF28673696E0Fd16B43E546f8E094640ccd0b1","fee":10000,"tickSpacing":200,"hooks":"0x343fbe5E8CF1d05FD316Cc2c698fC91d003cc044"},"symbols":["WETH","BEAR"],"state":{"sqrtP":"2426125440610676640709302792608967","tick":206599,"protocolFee":0,"lpFee":10000,"liquidity":"32655948320811701268195"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"533210430365762","paid":"533210430365762","got":"494750503223204022833576","expected":"494750503223204022833576","feePpm":10000,"takePpm":0},{"zeroForOne":false,"ok":true,"amountIn":"2320847038779009161182","paid":"2320847038779009161182","got":"2450266816706","expected":"2450266816706","feePpm":10000,"takePpm":0}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-3152555472413","-3919935600568013879720"],"removed":["3152555472412","3919935600568013879719"]}},{"id":"0xda9e92b1dfa791a8db75ca89cb5c2cef923c3ac4914cb06d74af2041c9747014","key":{"currency0":"0x86923f96303D656E4aa86D9d42D1e57ad2023fdC","currency1":"0xddD360f2b86d88DD85710B33E9a405E558023bC1","fee":10000,"tickSpacing":200,"hooks":"0x343fbe5E8CF1d05FD316Cc2c698fC91d003cc044"},"symbols":["AMD","FROCK"],"state":{"sqrtP":"1216936897015792709479286765793756","tick":192799,"protocolFee":0,"lpFee":10000,"liquidity":"65104425428296761396786"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"2119298055174326","paid":"2119298055174326","got":"494753940638269833096894","expected":"494753940638269833096894","feePpm":10000,"takePpm":0},{"zeroForOne":false,"ok":true,"amountIn":"583919489053747936323","paid":"583919489053747936323","got":"2450253192871","expected":"2450253192871","feePpm":10000,"takePpm":0}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-12527288438660","-3920630371595498286861"],"removed":["12527288438659","3920630371595498286860"]}}],"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":"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":"pass","detail":"A fixed fee of 1%, written in the pool key."},{"id":"05","title":"No one holds the switch","status":"caution","detail":"No owner() but it has setFactory, setAdmin."},{"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":"11 pools over 11 days."}],"score":88,"verdict":"caution"}