{"hook":"0x4201Ec638F68b59FC2a9FdbEb5abfEc834f16800","block":92948468,"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":1772,"selectors":["0xd5f39488","0xd7b96d4e","0xdc4c90d3","0xdc98354e","0x259982e5","0x90107afe","0xc45a0155","0xc4e833ce"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":0,"addresses":[]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0xd5f39488","name":"deployer()"},{"selector":"0xd7b96d4e","name":"locker()"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0x259982e5","name":"beforeAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),bytes)"},{"selector":"0x90107afe","name":"setAddresses(address,address)"},{"selector":"0xc45a0155","name":null},{"selector":"0xc4e833ce","name":"getHookPermissions()"}],"history":{"pools":43,"firstTime":1788637927,"lastTime":1791106496},"pools":[{"id":"0xafa0d29857ec6655de57def578b719936efc145d10011f2fb1b6daf4a16645a1","key":{"currency0":"0x8B9d2eb675e33e541Cb7De25a55724D2e70E8DAB","currency1":"0xC84D389c05007dD7ea14f39BE2D525FC21e0C7dE","fee":30000,"tickSpacing":60,"hooks":"0x4201Ec638F68b59FC2a9FdbEb5abfEc834f16800"},"symbols":["pSPCX3x","SI"],"state":{"sqrtP":"607341381025668596474246452567610","tick":178899,"protocolFee":0,"lpFee":30000,"liquidity":"129925080195192330286138"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"8319932054751692","paid":"8319932054751692","got":"474014195415640091902972","expected":"474014195415640091902972","feePpm":30000,"takePpm":0},{"zeroForOne":false,"ok":true,"amountIn":"258646694343385101465636","paid":"258646694343385101465636","got":"4268376327294879","expected":"4268376327294879","feePpm":30000,"takePpm":0}],"roundTrip":{"ok":false,"stage":"add","reason":"NotLocker"}},{"id":"0x8b1471ca5cd56f8e515dc9bca87debe780571e114b7728e57ef8156b440a66f0","key":{"currency0":"0xe24CABDf76DD1c2576049167eB1755C84b985C36","currency1":"0xF9BBCdeFB27cA1C08EAa090203ceBf5Ce0e43b9A","fee":30000,"tickSpacing":60,"hooks":"0x4201Ec638F68b59FC2a9FdbEb5abfEc834f16800"},"symbols":["pHOOD3x","Q45"],"state":{"sqrtP":"585894337811246762947201335845992","tick":178180,"protocolFee":0,"lpFee":30000,"liquidity":"121627278958885684639721"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"8223586747331577","paid":"8223586747331577","got":"436015436242214205120245","expected":"436015436242214205120245","feePpm":30000,"takePpm":0},{"zeroForOne":false,"ok":true,"amountIn":"223083520429128024452734","paid":"223083520429128024452734","got":"3955991202334836","expected":"3955991202334836","feePpm":30000,"takePpm":0}],"roundTrip":{"ok":false,"stage":"add","reason":"NotLocker"}}],"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":"n/a","detail":"Closed to outside LPs: only the hook's own liquidity is in the pool."},{"id":"04","title":"The fee is the fee","status":"caution","detail":"A fixed fee, but a high one: 3%."},{"id":"05","title":"No one holds the switch","status":"caution","detail":"No owner() but it has setAddresses."},{"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":"43 pools over 44 days."}],"score":88,"verdict":"caution"}