{"hook":"0x3bfF0Db34ddb6D2e82050945b754D3580ff85ac8","block":93172286,"bits":6856,"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":true},{"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":true},{"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":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":9876,"selectors":["0x03fd2a45","0x0885f732","0x0a4be5b5","0x1beb0f9f","0x21d0ee70","0x23e7c143","0x259982e5","0x362c540a","0x4c4a3c25","0x575e24b4","0x5c51507e","0x65e84bb1","0x6fe7e6eb","0x7460feda","0x760f5da4","0x78091129","0x78bbe9f9","0x91ca42ae","0x9fcbfa7e","0xa3f4bac7","0xa8c91644","0xac4e4054","0xac7f1ece","0xb47b2fb1","0xc1b4cb6b","0xdc4c90d3","0xf77c4791"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":1,"addresses":[]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0x03fd2a45","name":"DEAD()"},{"selector":"0x0885f732","name":"poolConfig(bytes32)"},{"selector":"0x0a4be5b5","name":"DAMPER_DURATION()"},{"selector":"0x1beb0f9f","name":"surchargeRemainderPips(bytes32)"},{"selector":"0x21d0ee70","name":"beforeRemoveLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),bytes)"},{"selector":"0x23e7c143","name":"IMPACT_FULL_X18()"},{"selector":"0x259982e5","name":"beforeAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),bytes)"},{"selector":"0x362c540a","name":"MAX_IMPACT_PIPS()"},{"selector":"0x4c4a3c25","name":"stateView()"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x5c51507e","name":"STRESS_SCALE()"},{"selector":"0x65e84bb1","name":"BASELINE_PIPS()"},{"selector":"0x6fe7e6eb","name":"afterInitialize(address,(address,address,uint24,int24,address),uint160,int24)"},{"selector":"0x7460feda","name":"RECENT_WINDOW()"},{"selector":"0x760f5da4","name":"previewSell(bytes32,uint256)"},{"selector":"0x78091129","name":"sellFlow(bytes32)"},{"selector":"0x78bbe9f9","name":"currentTickCumulative(bytes32)"},{"selector":"0x91ca42ae","name":"IMPACT_START_X18()"},{"selector":"0x9fcbfa7e","name":"previewSellBreakdown(bytes32,uint256)"},{"selector":"0xa3f4bac7","name":"ALL_HOOK_MASK()"},{"selector":"0xa8c91644","name":"MAX_CLIP_PIPS()"},{"selector":"0xac4e4054","name":"REQUIRED_HOOK_FLAGS()"},{"selector":"0xac7f1ece","name":"MAX_STRESS_PIPS()"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xc1b4cb6b","name":"launchBoundarySqrtPriceX96(bytes32)"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xf77c4791","name":"controller()"}],"history":{"pools":6,"firstTime":1785769709,"lastTime":1785770442},"pools":[{"id":"0xe2a24f1dc200b2282237c6953d8e12631a1497a777dd9ba549d8d5cbfd47a4e1","key":{"currency0":"0x219fFfc7709A7890744501CCFb3200A8C6203038","currency1":"0xc0D6457C16Cc70d6790Dd43521C899C87ce02f35","fee":10000,"tickSpacing":60,"hooks":"0x3bfF0Db34ddb6D2e82050945b754D3580ff85ac8"},"symbols":["FMETA","META"],"state":{"sqrtP":"161461608802223275663928","tick":-262085,"protocolFee":0,"lpFee":10000,"liquidity":"2020138683506220292169"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"495634464147550867062172","paid":"495634464147550867062172","got":"2036859875851","expected":"2036859875851","feePpm":10000,"takePpm":0},{"zeroForOne":false,"ok":true,"amountIn":"236892576504","paid":"236892576504","got":"56465414854445458549419","expected":"56465414854445458549419","feePpm":10000,"takePpm":0}],"roundTrip":{"ok":false,"stage":"add","reason":"UnauthorizedLiquidityMutation"}},{"id":"0x4dafd785fe654c198297dff4b511c753a7f8dcc1c8baaffaf0c2dcf48e40057f","key":{"currency0":"0x12f190a9F9d7D37a250758b26824B97CE941bF54","currency1":"0x6B4dbb976ADC3e2982784911c008DC785AFAa5D3","fee":10000,"tickSpacing":60,"hooks":"0x3bfF0Db34ddb6D2e82050945b754D3580ff85ac8"},"symbols":["AMZN","FAMZN"],"state":{"sqrtP":"19911081731766300788575383527313269","tick":248701,"protocolFee":0,"lpFee":10000,"liquidity":"2912896262635159368518"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"222814552582","paid":"222814552582","got":"13931600892094841292589","expected":"13931600892094841292589","feePpm":10000,"takePpm":0},{"zeroForOne":false,"ok":true,"amountIn":"366024616253362287281982","paid":"366024616253362287281982","got":"5734558973619","expected":"5734558973619","feePpm":10000,"takePpm":0}],"roundTrip":{"ok":false,"stage":"add","reason":"UnauthorizedLiquidityMutation"}}],"openCallbacks":[],"checks":[{"id":"01","title":"Permissions that touch your money","status":"caution","detail":"The address enables before remove liquidity, before 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":"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":"pass","detail":"A fixed fee of 1%, written in the pool key."},{"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 77 days."}],"score":94,"verdict":"caution"}