{"hook":"0x643EeA3bA1fa41CE9BdFD34C8142461Ecc3d20cc","block":92973895,"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":12249,"selectors":["0x1928f54e","0x1fc8ce42","0x1fd71a18","0x240b9586","0x249d39e9","0x46062e9a","0x481c6a75","0x49421d37","0x55e2654d","0x575e24b4","0x5b632360","0x61d027b3","0x715018a6","0x81cbd3ea","0x89aeca76","0x8c21e2e2","0x8da5cb5b","0x90f0c7bf","0x91dd7346","0x994ec7c7","0xa5258210","0xac4e4054","0xaf28cd0d","0xb47b2fb1","0xb5217bb4","0xb947efcb","0xc1bf1dcf","0xc3accd48","0xcab1ef67","0xcf893acc","0xd980cc75","0xdc98354e","0xdf58a76f","0xf0f44260","0xf2fde38b"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":6,"addresses":[]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":"0x81596084EC21D5eABab7E6D9A6783a8Ce3764241","functions":[{"selector":"0x1928f54e","name":"quoteAllowed(address)"},{"selector":"0x1fc8ce42","name":"registerPair((address,address,uint24,int24,address),address,address,uint16,bool)"},{"selector":"0x1fd71a18","name":"creatorOwed(address,address)"},{"selector":"0x240b9586","name":"platformOwed(address)"},{"selector":"0x249d39e9","name":"BPS()"},{"selector":"0x46062e9a","name":"register((address,address,uint24,int24,address),address,address,uint16,bool)"},{"selector":"0x481c6a75","name":"manager()"},{"selector":"0x49421d37","name":"PLATFORM_ADD_BPS()"},{"selector":"0x55e2654d","name":"setQuoteAllowed(address,bool)"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x5b632360","name":"MAX_TRADE_FEE_BPS()"},{"selector":"0x61d027b3","name":"treasury()"},{"selector":"0x715018a6","name":"renounceOwnership()"},{"selector":"0x81cbd3ea","name":"feeClaimer()"},{"selector":"0x89aeca76","name":"registrars(address)"},{"selector":"0x8c21e2e2","name":"REFERRAL_ADD_BPS()"},{"selector":"0x8da5cb5b","name":"owner()"},{"selector":"0x90f0c7bf","name":"MIN_TRADE_FEE_BPS()"},{"selector":"0x91dd7346","name":"unlockCallback(bytes)"},{"selector":"0x994ec7c7","name":"referralOwed(address)"},{"selector":"0xa5258210","name":"LP_FEE_BPS()"},{"selector":"0xac4e4054","name":"REQUIRED_HOOK_FLAGS()"},{"selector":"0xaf28cd0d","name":"proveQuote(address)"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xb5217bb4","name":"pools(bytes32)"},{"selector":"0xb947efcb","name":"claimCreatorFees(address,address)"},{"selector":"0xc1bf1dcf","name":"setRegistrar(address,bool)"},{"selector":"0xc3accd48","name":"setFeeClaimer(address)"},{"selector":"0xcab1ef67","name":"quoteOf(address)"},{"selector":"0xcf893acc","name":"claimReferralFees(address,address)"},{"selector":"0xd980cc75","name":"quoteDecimals(address)"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xdf58a76f","name":"claimPlatformFees(address,address)"},{"selector":"0xf0f44260","name":"setTreasury(address)"},{"selector":"0xf2fde38b","name":"transferOwnership(address)"}],"history":{"pools":28,"firstTime":1788132075,"lastTime":1789401344},"pools":[{"id":"0x330991e8ef97b79b4fe17fb7b718f197ddd91aa556c138ce8d6e780c7ac7fec3","key":{"currency0":"0x32aC8C1D7672667D5EbdEa22935F7B06fC8D496f","currency1":"0xBA24Cd75c017c0969FD529eA69710536d3e86Cf3","fee":0,"tickSpacing":60,"hooks":"0x643EeA3bA1fa41CE9BdFD34C8142461Ecc3d20cc"},"symbols":["HOOD","HI"],"state":{"sqrtP":"508009314111204469290177741764377","tick":175327,"protocolFee":0,"lpFee":0,"liquidity":"148703029811265007120464"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"2096358248162040","paid":"2096358248162040","got":"83293977575550841761609","expected":"86180781550617184533883","feePpm":0,"takePpm":33498},{"zeroForOne":false,"ok":true,"amountIn":"476740352062803151587023","paid":"476740352062803151587023","got":"11201662819318814","expected":"11589925317453506","feePpm":0,"takePpm":33500}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-74467730139280","-2851267045424279303987"],"removed":["74467730139279","2851267045424279303986"]}},{"id":"0xe3850c358f281fc2766e5f9db3c99b314bb7d6bc3376cf3a1ff5919c010159df","key":{"currency0":"0x32aC8C1D7672667D5EbdEa22935F7B06fC8D496f","currency1":"0x9CdA751AE90684aF204be963573b134B9ED76064","fee":0,"tickSpacing":60,"hooks":"0x643EeA3bA1fa41CE9BdFD34C8142461Ecc3d20cc"},"symbols":["HOOD","BROOD"],"state":{"sqrtP":"16150207568122000394070983638331","tick":106352,"protocolFee":0,"lpFee":0,"liquidity":"4826019275085534901918"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"9608847064177101","paid":"9608847064177101","got":"393723711001628325622","expected":"399109533298476326769","feePpm":0,"takePpm":13495},{"zeroForOne":false,"ok":true,"amountIn":"339066167715068031367","paid":"339066167715068031367","got":"8047015497901334","expected":"8157136845313060","feePpm":0,"takePpm":13500}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-73129998218800","-3062033926775673350"],"removed":["73129998218799","3062033926775673349"]}}],"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 3.35% 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":"Owned by 0x81596084EC21D5eABab7E6D9A6783a8Ce3764241. Owner-style functions: setQuoteAllowed, claimCreatorFees, setRegistrar, setFeeClaimer, claimReferralFees, claimPlatformFees."},{"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":"28 pools over 49 days."}],"score":75,"verdict":"caution"}