{"hook":"0x4Eb1976978756Bd56802d8162f2271844924e0cc","block":92901677,"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":15459,"selectors":["0x06c29f11","0x1d0ec52f","0x1e83409a","0x28079e4a","0x3e03c062","0x3fc8cef3","0x485cc955","0x4bde38c8","0x4be27441","0x4f1ef286","0x52d1902d","0x5572eb10","0x575e24b4","0x60c6be1b","0x61b4fc7f","0x6945c5ea","0x704b6c02","0x79ba5097","0x7ec81752","0x833057f5","0x8da5cb5b","0x8fb96c9e","0x91b31f13","0x91dd7346","0xa04c294b","0xad3cb1cc","0xae5084d7","0xb47b2fb1","0xb7b43ed8","0xb92be3fe","0xbd115cd2","0xc1b86df8","0xc31c9c07","0xc4e833ce","0xc782a1e3","0xc94bafb4","0xcc718f76","0xce91e164","0xcf7568b7","0xdc4c90d3","0xdc98354e","0xdd1b9c4a","0xe30c3978","0xea40f8fe","0xef176059","0xf2fde38b","0xf851a440","0xf8bc6db2","0xfa275e11","0xfde28b32"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":14,"addresses":[]},"proxy":{"implementation":"0x3690dF68DB6eff764c5321552eff3a414562eB17","admin":null,"beacon":null,"clone":false},"owner":"0x7B2DaF7F696bB844C7786693062D6619D1858cC9","functions":[{"selector":"0x06c29f11","name":"referralSplitter()"},{"selector":"0x1d0ec52f","name":"MAX_SPLIT_RECIPIENTS()"},{"selector":"0x1e83409a","name":"claim(address)"},{"selector":"0x28079e4a","name":"owed(address,address)"},{"selector":"0x3e03c062","name":"setSwapConfig(address,address)"},{"selector":"0x3fc8cef3","name":"weth()"},{"selector":"0x485cc955","name":"initialize(address,address)"},{"selector":"0x4bde38c8","name":"platform()"},{"selector":"0x4be27441","name":"setLauncher(address,bool)"},{"selector":"0x4f1ef286","name":"upgradeToAndCall(address,bytes)"},{"selector":"0x52d1902d","name":"proxiableUUID()"},{"selector":"0x5572eb10","name":"configurePool((address,address,uint24,int24,address),(address,uint16,uint16,address[],uint16[],address,uint16))"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x60c6be1b","name":"poolRefSink(bytes32)"},{"selector":"0x61b4fc7f","name":"addEdge(address,address,uint,uint)"},{"selector":"0x6945c5ea","name":"setPlatform(address)"},{"selector":"0x704b6c02","name":"setAdmin(address)"},{"selector":"0x79ba5097","name":"acceptOwnership()"},{"selector":"0x7ec81752","name":"setQuoteToWethPath(address,bytes)"},{"selector":"0x833057f5","name":"autoDistribute(bytes32,uint256)"},{"selector":"0x8da5cb5b","name":"owner()"},{"selector":"0x8fb96c9e","name":"pushRewards(address,address,uint256)"},{"selector":"0x91b31f13","name":"refToken(bytes32)"},{"selector":"0x91dd7346","name":"unlockCallback(bytes)"},{"selector":"0xa04c294b","name":"setAutoThreshold(bytes32,uint80)"},{"selector":"0xad3cb1cc","name":"UPGRADE_INTERFACE_VERSION()"},{"selector":"0xae5084d7","name":"setReferralSplitter(address)"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xb7b43ed8","name":"MAX_SIDE_BPS()"},{"selector":"0xb92be3fe","name":"splitsOf(bytes32)"},{"selector":"0xbd115cd2","name":"quoteToWethPath(address)"},{"selector":"0xc1b86df8","name":"convertToWeth(address,address,bytes,uint256)"},{"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":"0xce91e164","name":"PLATFORM_BPS()"},{"selector":"0xcf7568b7","name":"setRewardsBps(bytes32,uint16)"},{"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":"0xea40f8fe","name":"distribute(bytes32)"},{"selector":"0xef176059","name":"setRates(bytes32,uint16,uint16)"},{"selector":"0xf2fde38b","name":"transferOwnership(address)"},{"selector":"0xf851a440","name":"admin()"},{"selector":"0xf8bc6db2","name":"setTokenCreator(bytes32,address)"},{"selector":"0xfa275e11","name":"isLauncher(address)"},{"selector":"0xfde28b32","name":"markReferred((address,address,uint24,int24,address))"}],"history":{"pools":7234,"firstTime":1785032248,"lastTime":1792423652},"pools":[{"id":"0x3178e80752556b271b7254f0b9072641132eff9f82e327cf6ba3a7ba633f7ad3","key":{"currency0":"0x01873ff412969Ad9863a3Ec0C0F7D2BFae5F2B47","currency1":"0x32aC8C1D7672667D5EbdEa22935F7B06fC8D496f","fee":3000,"tickSpacing":200,"hooks":"0x4Eb1976978756Bd56802d8162f2271844924e0cc"},"symbols":["BANKING","HOOD"],"state":{"sqrtP":"13470755453054271852895593","tick":-173600,"protocolFee":0,"lpFee":3000,"liquidity":"170024837451316382254892"},"swaps":[{"zeroForOne":true,"ok":false,"why":"thin","reason":"no liquidity below the price"},{"zeroForOne":false,"ok":true,"amountIn":"14454222675173278","paid":"14454222675173278","got":"488291454975500787085205","expected":"498251621566648987676600","feePpm":3000,"takePpm":19991}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-3920863939497281336473","-85433159993774"],"removed":["3920863939497281336472","85433159993773"]}}],"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 2.00% 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: claim, setSwapConfig, setLauncher, upgradeToAndCall, setPlatform, setAdmin."},{"id":"06","title":"The code cannot change","status":"fail","detail":"It is a proxy. The code that runs lives at 0x3690dF68DB6eff764c5321552eff3a414562eB17."},{"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":"7234 pools over 85 days."}],"score":60,"verdict":"danger"}