{"hook":"0xc6Bf34493adCe78fFA13B36b26DA85C93d5308C4","block":93002080,"bits":2244,"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":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":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":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":11187,"selectors":["0xde90e29b","0xe1b4af69","0xfbfa77cf","0xfc6fe14e","0xff27b300","0xd2128db5","0xdc4c90d3","0xdc98354e","0xdcf6836b","0xb47b2fb1","0xb6a8b0fa","0xc45a0155","0xc4e833ce","0xa71eeac4","0xad449a97","0xad5c4648","0xb13e0cf0","0x6fe7e6eb","0x72aa4f07","0x766fcc67","0x91dd7346","0x9f063efc","0x4df8ccb1","0x54b9c343","0x575e24b4","0x6c2bbe7e","0x259982e5","0x353c0970","0x49c4a7b0","0x4bf3d25c","0x0885f732","0x0d783d4f","0x21d0ee70","0x249d39e9"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":8,"addresses":["0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73","0x0BD7D308f8E1639FAb988dF18A8011F41Eacad72","0xfFfD8963eFD1FC6A506488495D951d5263988d26"]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0xde90e29b","name":"creatorBps()"},{"selector":"0xe1b4af69","name":"afterDonate(address,(address,address,uint24,int24,address),uint256,uint256,bytes)"},{"selector":"0xfbfa77cf","name":"vault()"},{"selector":"0xfc6fe14e","name":"maxCreatorBps()"},{"selector":"0xff27b300","name":"vaultBps()"},{"selector":"0xd2128db5","name":"registerPoolWithQuote((address,address,uint24,int24,address),address,address,bool)"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xdcf6836b","name":"quoteIsCurrency0(bytes32)"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xb6a8b0fa","name":"beforeDonate(address,(address,address,uint24,int24,address),uint256,uint256,bytes)"},{"selector":"0xc45a0155","name":null},{"selector":"0xc4e833ce","name":"getHookPermissions()"},{"selector":"0xa71eeac4","name":"registerPoolWithCreatorBps((address,address,uint24,int24,address),address,address,bool,uint256)"},{"selector":"0xad449a97","name":"sweepAccrued(address)"},{"selector":"0xad5c4648","name":"WETH()"},{"selector":"0xb13e0cf0","name":"owedFees(bytes32,address)"},{"selector":"0x6fe7e6eb","name":"afterInitialize(address,(address,address,uint24,int24,address),uint160,int24)"},{"selector":"0x72aa4f07","name":"registerPool((address,address,uint24,int24,address),address,address)"},{"selector":"0x766fcc67","name":"vaultAccrued(address)"},{"selector":"0x91dd7346","name":"unlockCallback(bytes)"},{"selector":"0x9f063efc","name":"afterAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0x4df8ccb1","name":"platformOwner()"},{"selector":"0x54b9c343","name":"ownerBps()"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x6c2bbe7e","name":"afterRemoveLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0x259982e5","name":"beforeAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),bytes)"},{"selector":"0x353c0970","name":"MAX_TOTAL_BPS()"},{"selector":"0x49c4a7b0","name":"poolCreatorBps(bytes32)"},{"selector":"0x4bf3d25c","name":"openTrading((address,address,uint24,int24,address))"},{"selector":"0x0885f732","name":"poolConfig(bytes32)"},{"selector":"0x0d783d4f","name":"sweepFees((address,address,uint24,int24,address))"},{"selector":"0x21d0ee70","name":"beforeRemoveLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),bytes)"},{"selector":"0x249d39e9","name":"BPS()"}],"history":{"pools":26,"firstTime":1791395730,"lastTime":1791935873},"pools":[{"id":"0x29b9759c1252ab712e90d64f88cce234d3557307d97af1f4e73f39cb8f77dd47","key":{"currency0":"0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73","currency1":"0xF6751239fC9f4255dc80310c908bE748Aa9BaE22","fee":0,"tickSpacing":1,"hooks":"0xc6Bf34493adCe78fFA13B36b26DA85C93d5308C4"},"symbols":["WETH","SIGMA"],"state":{"sqrtP":"2048641183056395598150215175620648","tick":203217,"protocolFee":0,"lpFee":0,"liquidity":"35271425890604931745384"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"4596785654373","paid":"4596785654373","got":"3035026758719368873864","expected":"3073444818956322910242","feePpm":0,"takePpm":12500},{"zeroForOne":false,"ok":true,"amountIn":"8326528050122043021402","paid":"8326528050122043021402","got":"12297715973516","expected":"12453383264319","feePpm":0,"takePpm":12500}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-4036071971746","-2696517576028670292437"],"removed":["4036071971745","2696517576028670292436"]}},{"id":"0x062fb2de8dca45429b72dceb23845a141e25b0058c25acb1ea40ddc6e0268625","key":{"currency0":"0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73","currency1":"0x403Cb172fc842115392E6B4389793e1712b0D294","fee":0,"tickSpacing":1,"hooks":"0xc6Bf34493adCe78fFA13B36b26DA85C93d5308C4"},"symbols":["WETH","Banksy"],"state":{"sqrtP":"1526257535562791070914540017347498","tick":197329,"protocolFee":0,"lpFee":0,"liquidity":"35271425890604931745384"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"18634067549657","paid":"18634067549657","got":"6828680992625152293406","expected":"6915119992531799790790","feePpm":0,"takePpm":12500},{"zeroForOne":false,"ok":true,"amountIn":"1577926997994022083401","paid":"1577926997994022083401","got":"4198812947857","expected":"4251962478842","feePpm":0,"takePpm":12500}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-5412637791814","-2010727126223279833240"],"removed":["5412637791813","2010727126223279833239"]}}],"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":"caution","detail":"It takes 1.25% of each swap on top of the pool fee."},{"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 0%, written in the pool key."},{"id":"05","title":"No one holds the switch","status":"caution","detail":"No owner() but it has sweepAccrued, sweepFees."},{"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":"26 pools over 12 days."}],"score":75,"verdict":"caution"}