{"hook":"0x0eb670001168312753ff81860363BF055891E0c4","block":93300456,"bits":8388,"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":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":11887,"selectors":["0xebd09054","0xf4a9c2db","0xfc13980f","0xfdc39fa3","0xdc4c90d3","0xdc98354e","0xe1b4af69","0xc4e833ce","0xc54e44eb","0xd0fe40bd","0xd5801203","0xd5eb811d","0xd62942a6","0xad5c4648","0xb47b2fb1","0xb6a8b0fa","0xb9e4b65c","0xbe37a29b","0xc0fa5d7c","0x82f3ae79","0x84bb1d7d","0x89a30271","0x8d999802","0x9da38371","0x9f063efc","0x62899364","0x67780d30","0x6c2bbe7e","0x6fe7e6eb","0x74779b51","0x8288b8cf","0x470d4da6","0x47ecc733","0x4d588b28","0x4dbeb3e3","0x575e24b4","0x57ae3a9f","0x21d0ee70","0x259982e5","0x406f0550","0x43bfdfd6","0x44386321","0x44ae5197","0x0f29dc47","0x146958d3","0x15a0ea6a","0x16a1647f","0x1fd5203d","0x20ead6c3"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":3,"addresses":["0x8d0D000Ee44948FC98c9B98A4FA4921476f08B0d","0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d","0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73","0x55d398326f99059fF775485246999027B3197955","0xeAEAc508Ac6528A6f939d7e9664c79D39D2464fE","0xFFFD8963efd1FC6a506488495d951D5163961682"]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0xebd09054","name":"FEE_RECIPIENT()"},{"selector":"0xf4a9c2db","name":"poolStates(bytes32)"},{"selector":"0xfc13980f","name":null},{"selector":"0xfdc39fa3","name":"DYNAMIC_FEE()"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xe1b4af69","name":"afterDonate(address,(address,address,uint24,int24,address),uint256,uint256,bytes)"},{"selector":"0xc4e833ce","name":"getHookPermissions()"},{"selector":"0xc54e44eb","name":"USDT()"},{"selector":"0xd0fe40bd","name":null},{"selector":"0xd5801203","name":"LAUNCH_EXPIRY()"},{"selector":"0xd5eb811d","name":null},{"selector":"0xd62942a6","name":"LAUNCH_TICK_SPAN()"},{"selector":"0xad5c4648","name":"WETH()"},{"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":"0xb9e4b65c","name":"LAUNCH_COMPONENT_CAP()"},{"selector":"0xbe37a29b","name":"PROTOCOL_SHARE_BIPS()"},{"selector":"0xc0fa5d7c","name":"ITEM_TOKEN_ID()"},{"selector":"0x82f3ae79","name":"claimFeesBatch(address[])"},{"selector":"0x84bb1d7d","name":"MAX_BASE_FEE_PIPS()"},{"selector":"0x89a30271","name":"USDC()"},{"selector":"0x8d999802","name":"VOL_FEE_PER_TICK()"},{"selector":"0x9da38371","name":"isStableQuote(address)"},{"selector":"0x9f063efc","name":"afterAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0x62899364","name":null},{"selector":"0x67780d30","name":"DRIFT_FEE_PER_TICK()"},{"selector":"0x6c2bbe7e","name":"afterRemoveLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0x6fe7e6eb","name":"afterInitialize(address,(address,address,uint24,int24,address),uint160,int24)"},{"selector":"0x74779b51","name":"VOL_COMPONENT_CAP()"},{"selector":"0x8288b8cf","name":null},{"selector":"0x470d4da6","name":"SIZE_MAX_STEPS()"},{"selector":"0x47ecc733","name":null},{"selector":"0x4d588b28","name":"accruedBalances(address[])"},{"selector":"0x4dbeb3e3","name":"MAX_FEE_PIPS()"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x57ae3a9f","name":"USDG()"},{"selector":"0x21d0ee70","name":"beforeRemoveLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),bytes)"},{"selector":"0x259982e5","name":"beforeAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),bytes)"},{"selector":"0x406f0550","name":null},{"selector":"0x43bfdfd6","name":"SIZE_COMPONENT_CAP()"},{"selector":"0x44386321","name":"USD1()"},{"selector":"0x44ae5197","name":"VOL_WINDOW()"},{"selector":"0x0f29dc47","name":"SIZE_FEE_INCREMENT()"},{"selector":"0x146958d3","name":"DRIFT_RESET()"},{"selector":"0x15a0ea6a","name":"claimFees(address)"},{"selector":"0x16a1647f","name":"sizeStepFor(address)"},{"selector":"0x1fd5203d","name":null},{"selector":"0x20ead6c3","name":null}],"history":{"pools":4,"firstTime":1788273338,"lastTime":1788363889},"pools":[{"id":"0x859d6d8f11cd5448b569547015da47df8c9a735b75bdf90d8e6f287d1f65c01f","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0x07EBB29a38Fbcb41563817e5E19f2ceC619C90D2","fee":8388608,"tickSpacing":60,"hooks":"0x0eb670001168312753ff81860363BF055891E0c4"},"symbols":["ETH","BUN"],"state":{"sqrtP":"32341402746797419372940240404875","tick":120241,"protocolFee":0,"lpFee":0,"liquidity":"0"},"swaps":[{"zeroForOne":true,"ok":false,"why":"thin","reason":"no liquidity at the current price"},{"zeroForOne":false,"ok":false,"why":"thin","reason":"no liquidity at the current price"}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-79347025","-12092339034896"],"removed":["79347024","12092339034895"]}}],"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":"n/a","detail":"No pool with liquidity to swap through yet."},{"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":"caution","detail":"Its pools use a dynamic fee that the hook sets before every swap. It stands at 0% now and can change."},{"id":"05","title":"No one holds the switch","status":"caution","detail":"No owner() but it has claimFeesBatch, claimFees."},{"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":"4 pools over 48 days."}],"score":80,"verdict":"caution"}