{"hook":"0x629EEE3bdb7ebB7c50EFFA100C3A83bBc8EaA044","block":93486468,"bits":8260,"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":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":2370,"selectors":["0x5bb47808","0x8da5cb5b","0xb47b2fb1","0xc45a0155","0xd22db9c9","0xdc4c90d3","0xdc98354e","0xfa02716d"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":1,"addresses":[]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":"0xd0f36F34eD3B665C5001663ECFb7764468525bdf","functions":[{"selector":"0x5bb47808","name":"setFactory(address)"},{"selector":"0x8da5cb5b","name":"owner()"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xc45a0155","name":null},{"selector":"0xd22db9c9","name":"marketForPool(bytes32)"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xfa02716d","name":"registerPool((address,address,uint24,int24,address),address)"}],"history":{"pools":3,"firstTime":1789687569,"lastTime":1789745034},"pools":[{"id":"0x6485dd7fde976d5974eed3a7367f9c8fff60b103f3e57e03000e75edbb58162a","key":{"currency0":"0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73","currency1":"0xC4A427A18aDe2BC62aa81F7d576e21f82FAC341f","fee":10000,"tickSpacing":200,"hooks":"0x629EEE3bdb7ebB7c50EFFA100C3A83bBc8EaA044"},"symbols":["WETH","TEST"],"state":{"sqrtP":"1578197850572970546237849671327707","tick":197999,"protocolFee":0,"lpFee":10000,"liquidity":"50199523015373176184873"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"1260049861985490","paid":"1260049861985490","got":"494733969253833594050422","expected":"494733969253833594050422","feePpm":10000,"takePpm":0},{"zeroForOne":false,"ok":true,"amountIn":"10675470124132686029934","paid":"10675470124132686029934","got":"26635072689172","expected":"26635072689172","feePpm":10000,"takePpm":0}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-7458096727087","-3916593751338598804785"],"removed":["7458096727086","3916593751338598804784"]}},{"id":"0xd6bdeec0c7dd9653c6c0cc7af3d44fc3707221278ae80f64811a40ac655668c3","key":{"currency0":"0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73","currency1":"0xa77Eb61D66C55264fc052E8725aBe3DfD62659Fe","fee":10000,"tickSpacing":200,"hooks":"0x629EEE3bdb7ebB7c50EFFA100C3A83bBc8EaA044"},"symbols":["WETH","BONS"],"state":{"sqrtP":"1578252978323333481931565928771189","tick":197999,"protocolFee":0,"lpFee":10000,"liquidity":"50199523015373176184873"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"1260005848943734","paid":"1260005848943734","got":"494751250718729014323083","expected":"494751250718729014323083","feePpm":10000,"takePpm":0},{"zeroForOne":false,"ok":true,"amountIn":"1943137184340937284324","paid":"1943137184340937284324","got":"4847789504752","expected":"4847789504752","feePpm":10000,"takePpm":0}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-7449294118736","-3920086684514515504283"],"removed":["7449294118735","3920086684514515504282"]}}],"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":"Owned by 0xd0f36F34eD3B665C5001663ECFb7764468525bdf. Owner-style functions: setFactory."},{"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":"3 pools over 32 days."}],"score":88,"verdict":"caution"}