{"hook":"0xd7d3d9CEEC4E8f295bBB87ce7Bd46c7c6224A0cc","block":92922519,"bits":8396,"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":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":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":24268,"selectors":["0x06c29f11","0x082bebf1","0x0d4dbd1d","0x10be0341","0x19379038","0x1a3b4a9b","0x1d0ec52f","0x1e7fdb4f","0x28079e4a","0x2bca33e9","0x31277ba0","0x314d76b5","0x32b1f5b9","0x38929e00","0x3e03c062","0x3edcd8d1","0x3fc8cef3","0x402b378d","0x40fd6d98","0x4a774941","0x4bde38c8","0x4be27441","0x4f28f630","0x52f9adb4","0x565cf4de","0x56f93f37","0x575e24b4","0x5cd37b3f","0x60c6be1b","0x61b4fc7f","0x6945c5ea","0x6ef61607","0x6fb9389a","0x704b6c02","0x715018a6","0x71a43408","0x79ba5097","0x7ec81752","0x8997235c","0x8c97edfe","0x8da5cb5b","0x8fb96c9e","0x91b31f13","0x91dd7346","0x999699de","0xa04c294b","0xa87d3374","0xaad3ec96","0xae5084d7","0xb47b2fb1","0xb5c7d44a","0xb92be3fe","0xbd115cd2","0xbf9b58cf","0xc31c9c07","0xc4e833ce","0xc782a1e3","0xc94bafb4","0xcc718f76","0xcf7568b7","0xd48a4846","0xdab0d529","0xdc4c90d3","0xdc98354e","0xdd1b9c4a","0xe30c3978","0xe978bdd7","0xea40f8fe","0xebbd8172","0xedfec2bc","0xef176059","0xf2fde38b","0xf3d507a3","0xf851a440","0xf8bc6db2","0xfa275e11","0xfd71aabe","0xfde28b32","0xffd5c11e"],"delegatecall":true,"selfdestruct":false,"create":false,"calls":8,"addresses":["0xfFFFFfffFFFfFfFFffFFFfFfffFFfFfF00000000","0xfFFFfFfffFfFFfFFfffFffFFFffffFFF0000ffff","0xF5BCf7701233a50D37afF6828F34d7fe0C476f55"]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":"0x7B2DaF7F696bB844C7786693062D6619D1858cC9","functions":[{"selector":"0x06c29f11","name":"referralSplitter()"},{"selector":"0x082bebf1","name":"tierDivisor()"},{"selector":"0x0d4dbd1d","name":"platformBpsOf(bytes32,bool)"},{"selector":"0x10be0341","name":"maxSideBps()"},{"selector":"0x19379038","name":"setMaxSideBps(uint16)"},{"selector":"0x1a3b4a9b","name":"accruedPlatformQuote(bytes32)"},{"selector":"0x1d0ec52f","name":"MAX_SPLIT_RECIPIENTS()"},{"selector":"0x1e7fdb4f","name":"pushOwed(address,address)"},{"selector":"0x28079e4a","name":"owed(address,address)"},{"selector":"0x2bca33e9","name":"MAX_TRADING_DELAY()"},{"selector":"0x31277ba0","name":"adminSetAutoThreshold(bytes32,uint80)"},{"selector":"0x314d76b5","name":"setInSwapRegistry(address)"},{"selector":"0x32b1f5b9","name":"setPoolPlatformBps(bytes32,uint16,bool)"},{"selector":"0x38929e00","name":"inSwapRegistry()"},{"selector":"0x3e03c062","name":"setSwapConfig(address,address)"},{"selector":"0x3edcd8d1","name":"pushSplit(address,address,uint256)"},{"selector":"0x3fc8cef3","name":"weth()"},{"selector":"0x402b378d","name":"defaultAutoThreshold(address)"},{"selector":"0x40fd6d98","name":"adminSetRewardsBps(bytes32,uint16)"},{"selector":"0x4a774941","name":"MAX_LAUNCH_TAX_BPS()"},{"selector":"0x4bde38c8","name":"platform()"},{"selector":"0x4be27441","name":"setLauncher(address,bool)"},{"selector":"0x4f28f630","name":"tierBase()"},{"selector":"0x52f9adb4","name":"adminSetRates(bytes32,uint16,uint16)"},{"selector":"0x565cf4de","name":"convertToWeth(address,address,bytes,uint256,uint256)"},{"selector":"0x56f93f37","name":"configurePool((address,address,uint24,int24,address),(address,uint16,uint16,address[],uint16[],address,uint16,bool,uint80,uint16,uint16,uint16,uint8))"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x5cd37b3f","name":"MAX_LAUNCH_TAX_SECS()"},{"selector":"0x60c6be1b","name":"poolRefSink(bytes32)"},{"selector":"0x61b4fc7f","name":"addEdge(address,address,uint,uint)"},{"selector":"0x6945c5ea","name":"setPlatform(address)"},{"selector":"0x6ef61607","name":"configOf(bytes32)"},{"selector":"0x6fb9389a","name":"MAX_BUY_LOCK_SECS()"},{"selector":"0x704b6c02","name":"setAdmin(address)"},{"selector":"0x715018a6","name":"renounceOwnership()"},{"selector":"0x71a43408","name":"setAutoSend(bytes32,bool)"},{"selector":"0x79ba5097","name":"acceptOwnership()"},{"selector":"0x7ec81752","name":"setQuoteToWethPath(address,bytes)"},{"selector":"0x8997235c","name":"effectiveBps(bytes32,bool)"},{"selector":"0x8c97edfe","name":"inSwapAllowed(address)"},{"selector":"0x8da5cb5b","name":"owner()"},{"selector":"0x8fb96c9e","name":"pushRewards(address,address,uint256)"},{"selector":"0x91b31f13","name":"refToken(bytes32)"},{"selector":"0x91dd7346","name":"unlockCallback(bytes)"},{"selector":"0x999699de","name":"setMaxBuy((address,address,uint24,int24,address),uint16)"},{"selector":"0xa04c294b","name":"setAutoThreshold(bytes32,uint80)"},{"selector":"0xa87d3374","name":"adminSetAutoSend(bytes32,bool)"},{"selector":"0xaad3ec96","name":"claim(address,uint256)"},{"selector":"0xae5084d7","name":"setReferralSplitter(address)"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xb5c7d44a","name":"MAX_PLATFORM_BPS()"},{"selector":"0xb92be3fe","name":"splitsOf(bytes32)"},{"selector":"0xbd115cd2","name":"quoteToWethPath(address)"},{"selector":"0xbf9b58cf","name":"adminSetCreatorSplit(bytes32,address[],uint16[])"},{"selector":"0xc31c9c07","name":"swapRouter()"},{"selector":"0xc4e833ce","name":"getHookPermissions()"},{"selector":"0xc782a1e3","name":"pushReferral(address,address,address,uint256)"},{"selector":"0xc94bafb4","name":"accruedQuote(bytes32)"},{"selector":"0xcc718f76","name":"config(bytes32)"},{"selector":"0xcf7568b7","name":"setRewardsBps(bytes32,uint16)"},{"selector":"0xd48a4846","name":"launcherCount()"},{"selector":"0xdab0d529","name":"autoDistribute(bytes32,uint256,uint256)"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xdd1b9c4a","name":"POOL_FEE()"},{"selector":"0xe30c3978","name":"pendingOwner()"},{"selector":"0xe978bdd7","name":"setTierParams(uint16,uint16)"},{"selector":"0xea40f8fe","name":"distribute(bytes32)"},{"selector":"0xebbd8172","name":"MAX_SIDE_BPS_LIMIT()"},{"selector":"0xedfec2bc","name":"claimTo(address,uint256,address)"},{"selector":"0xef176059","name":"setRates(bytes32,uint16,uint16)"},{"selector":"0xf2fde38b","name":"transferOwnership(address)"},{"selector":"0xf3d507a3","name":"creatorPoolBpsOf(bytes32,bool)"},{"selector":"0xf851a440","name":"admin()"},{"selector":"0xf8bc6db2","name":"setTokenCreator(bytes32,address)"},{"selector":"0xfa275e11","name":"isLauncher(address)"},{"selector":"0xfd71aabe","name":"MIN_MAX_BUY_BPS()"},{"selector":"0xfde28b32","name":"markReferred((address,address,uint24,int24,address))"},{"selector":"0xffd5c11e","name":"setDefaultAutoThreshold(address,uint80)"}],"history":{"pools":70,"firstTime":1786150762,"lastTime":1789755869},"pools":[{"id":"0x481a789011a3094cd0bde4f87988d477d2432cf5a769853daaabd863943297af","key":{"currency0":"0x32aC8C1D7672667D5EbdEa22935F7B06fC8D496f","currency1":"0x4930348d8E1A531E37fbEf1eF5c35372d3440123","fee":3000,"tickSpacing":200,"hooks":"0xd7d3d9CEEC4E8f295bBB87ce7Bd46c7c6224A0cc"},"symbols":["HOOD","HOOD"],"state":{"sqrtP":"453606169974314395084891643125033","tick":173061,"protocolFee":0,"lpFee":3000,"liquidity":"170024837451316382254892"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"14848514355323978","paid":"14848514355323978","got":"479639826703817324649250","expected":"485020906068509993272138","feePpm":3000,"takePpm":11095},{"zeroForOne":false,"ok":true,"amountIn":"486722857562873785586186","paid":"486722857562873785586186","got":"14632350531701889","expected":"14796592710791676","feePpm":3000,"takePpm":11100}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-107621288814006","-3167835643199951062633"],"removed":["107621288814005","3167835643199951062632"]}},{"id":"0xec5bffbd7a3ea92e0fdbde3e0de7b2683516d02153f5518f1c4953bf9de4372e","key":{"currency0":"0x32aC8C1D7672667D5EbdEa22935F7B06fC8D496f","currency1":"0x8C407c2015BDd33904BD09E3CfBc601130f30123","fee":3000,"tickSpacing":200,"hooks":"0xd7d3d9CEEC4E8f295bBB87ce7Bd46c7c6224A0cc"},"symbols":["HOOD","booh"],"state":{"sqrtP":"448953678766404088632542426373529","tick":172855,"protocolFee":0,"lpFee":3000,"liquidity":"170024837451316382254892"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"15002388988178071","paid":"15002388988178071","got":"474288485443000496883148","expected":"480046204112264071423986","feePpm":3000,"takePpm":11995},{"zeroForOne":false,"ok":true,"amountIn":"481730699242742299497448","paid":"481730699242742299497448","got":"14770530130089126","expected":"14949929281466726","feePpm":3000,"takePpm":12000}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-109633262600959","-3106431541299878427282"],"removed":["109633262600958","3106431541299878427281"]}}],"openCallbacks":[],"checks":[{"id":"01","title":"Permissions that touch your money","status":"caution","detail":"The address enables before swap returns delta, 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.20% 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.30%, written in the pool key."},{"id":"05","title":"No one holds the switch","status":"caution","detail":"Owned by 0x7B2DaF7F696bB844C7786693062D6619D1858cC9. Owner-style functions: setMaxSideBps, setInSwapRegistry, setPoolPlatformBps, setSwapConfig, setLauncher, setPlatform."},{"id":"06","title":"The code cannot change","status":"caution","detail":"The bytecode contains DELEGATECALL."},{"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":"70 pools over 72 days."}],"score":68,"verdict":"caution"}