{"hook":"0x8DBDF613fc5bf103d1718620E15e45A6982d3Ac8","block":93172611,"bits":15048,"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":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":11148,"selectors":["0x01ffc9a7","0x03fd2a45","0x0885f732","0x0a4be5b5","0x1beb0f9f","0x21d0ee70","0x23e7c143","0x259982e5","0x362c540a","0x456cb7c6","0x4c4a3c25","0x575e24b4","0x5c51507e","0x65e84bb1","0x6fe7e6eb","0x7460feda","0x760f5da4","0x78091129","0x78bbe9f9","0x91ca42ae","0x9fcbfa7e","0xa3f4bac7","0xa8c91644","0xac4e4054","0xac7f1ece","0xb47b2fb1","0xc1b4cb6b","0xdc4c90d3","0xdc98354e","0xf77c4791"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":1,"addresses":[]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0x01ffc9a7","name":"supportsInterface(bytes4)"},{"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":"0x456cb7c6","name":"authorized()"},{"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":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xf77c4791","name":"controller()"}],"history":{"pools":6,"firstTime":1786033921,"lastTime":1786406293},"pools":[{"id":"0x7c0fe9b7a0af51e27f77645e1960c30833e35fd5bbd3057ca390d848ef3fa8b3","key":{"currency0":"0x12f190a9F9d7D37a250758b26824B97CE941bF54","currency1":"0x49D97fa2e765F408B622e4cEf172742dAf3C438A","fee":10000,"tickSpacing":60,"hooks":"0x8DBDF613fc5bf103d1718620E15e45A6982d3Ac8"},"symbols":["AMZN","TEST"],"state":{"sqrtP":"9012835720766708544985989603958476","tick":232848,"protocolFee":0,"lpFee":10000,"liquidity":"6606849528342354722694"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"29039059645384","paid":"29039059645384","got":"371848953493220347643350","expected":"371848953493220347643350","feePpm":10000,"takePpm":0},{"zeroForOne":false,"ok":true,"amountIn":"110778468249009361143453","paid":"110778468249009361143453","got":"8473511828567","expected":"8473511828567","feePpm":10000,"takePpm":0}],"roundTrip":{"ok":false,"stage":"add","reason":"UnauthorizedLiquidityMutation"}},{"id":"0x0898f842552bf7d78127195c0d8f370bd9610fa49f709247d219656909de97ea","key":{"currency0":"0x3bB72C5D677C1AEDEcBF98E1B9c50f749fB990e9","currency1":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","fee":10000,"tickSpacing":60,"hooks":"0x8DBDF613fc5bf103d1718620E15e45A6982d3Ac8"},"symbols":["GHOSTCAT","USDG"],"state":{"sqrtP":"11565122176419270501","tick":-452975,"protocolFee":0,"lpFee":10000,"liquidity":"109965605485520000"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"238161003488443711072684","paid":"238161003488443711072684","got":"5022","expected":"5022","feePpm":10000,"takePpm":0},{"zeroForOne":false,"ok":true,"amountIn":"6972","paid":"6972","got":"323777730635974292871604","expected":"323777730635974292871604","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 74 days."}],"score":94,"verdict":"caution"}