{"hook":"0x2494B3a35DE95A27cc3F1D766Fc14bE8F3F260cC","block":93364547,"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":11335,"selectors":["0x0a009097","0x1459457a","0x1890d40e","0x20f2fabe","0x24dc2553","0x3717eb5d","0x478222c2","0x4f1ef286","0x52d1902d","0x575e24b4","0x74c117f0","0x79ba5097","0x7eabe8ab","0x80fa02f7","0x8da5cb5b","0x8ea98117","0xac4e4054","0xae871034","0xb47b2fb1","0xb9629a41","0xc4e833ce","0xcbaa1a47","0xd55be8c6","0xdc4c90d3","0xdc98354e","0xdcad8f82","0xe30c3978","0xed8b91ef","0xf2fde38b"],"delegatecall":true,"selfdestruct":false,"create":false,"calls":6,"addresses":[]},"proxy":{"implementation":"0xB55ece1aeD9AD524956cc5F1e6a461fF1F318a1c","admin":null,"beacon":null,"clone":false},"owner":"0x4dafe82666C2FfA75FE3F9c74A2E03e67Ee91ae0","functions":[{"selector":"0x0a009097","name":"coordinator()"},{"selector":"0x1459457a","name":"initialize(address,address,address,address,address)"},{"selector":"0x1890d40e","name":null},{"selector":"0x20f2fabe","name":null},{"selector":"0x24dc2553","name":null},{"selector":"0x3717eb5d","name":null},{"selector":"0x478222c2","name":"feeVault()"},{"selector":"0x4f1ef286","name":"upgradeToAndCall(address,bytes)"},{"selector":"0x52d1902d","name":"proxiableUUID()"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x74c117f0","name":"launchAdapter()"},{"selector":"0x79ba5097","name":"acceptOwnership()"},{"selector":"0x7eabe8ab","name":null},{"selector":"0x80fa02f7","name":"ROBINHOOD_CHAIN_ID()"},{"selector":"0x8da5cb5b","name":"owner()"},{"selector":"0x8ea98117","name":"setCoordinator(address)"},{"selector":"0xac4e4054","name":"REQUIRED_HOOK_FLAGS()"},{"selector":"0xae871034","name":null},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xb9629a41","name":"feeConfig(bytes32)"},{"selector":"0xc4e833ce","name":"getHookPermissions()"},{"selector":"0xcbaa1a47","name":"MIN_FEE_BPS()"},{"selector":"0xd55be8c6","name":"MAX_FEE_BPS()"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xdcad8f82","name":"hasValidAddressFlags()"},{"selector":"0xe30c3978","name":"pendingOwner()"},{"selector":"0xed8b91ef","name":"quoteFee(uint256,uint16)"},{"selector":"0xf2fde38b","name":"transferOwnership(address)"}],"history":{"pools":4,"firstTime":1789902032,"lastTime":1789950698},"pools":[{"id":"0x2167fde5a460d4fa0f0c4a694755474a9b478b4005d146470790e84617795eee","key":{"currency0":"0x00a47E859C3B7A60738e552a553d224f643156bF","currency1":"0xaF3D76f1834A1d425780943C99Ea8A608f8a93f9","fee":0,"tickSpacing":60,"hooks":"0x2494B3a35DE95A27cc3F1D766Fc14bE8F3F260cC"},"symbols":["32131","AAPL"],"state":{"sqrtP":"10048483669279441174610618","tick":-179463,"protocolFee":0,"lpFee":0,"liquidity":"106229934786465995369870"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"418789680818845154933443","paid":"418789680818845154933443","got":"6598524738056795","expected":"6733188508221215","feePpm":0,"takePpm":20000},{"zeroForOne":false,"ok":true,"amountIn":"383929894862126","paid":"383929894862126","got":"23389664000521008096127","expected":"23866990480263578515695","feePpm":0,"takePpm":20000}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-2484563066274750503725","-43584918614252"],"removed":["2484563066274750503724","43584918614251"]}},{"id":"0xff47ac6e5a87b7f46afa0595a5ede67d180c97b185872f942a534cd6f54ab894","key":{"currency0":"0x284358abc07F9359f19f4b5b4aC91901Be2597Ba","currency1":"0x716496026F73B1795DF4991ACBC4506804D2257c","fee":0,"tickSpacing":60,"hooks":"0x2494B3a35DE95A27cc3F1D766Fc14bE8F3F260cC"},"symbols":["RGTI","1321"],"state":{"sqrtP":"137304854467031839046045410268269","tick":149159,"protocolFee":0,"lpFee":0,"liquidity":"577023753615992867732244"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"166478206118545021","paid":"166478206118545021","got":"494755096227367453592856","expected":"499750124937531234233373","feePpm":0,"takePpm":9996},{"zeroForOne":false,"ok":false,"why":"thin","reason":"no liquidity above the price"}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-983986447312121","-3245984407744904187209"],"removed":["983986447312120","3245984407744904187208"]}}],"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% 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 0x4dafe82666C2FfA75FE3F9c74A2E03e67Ee91ae0. Owner-style functions: upgradeToAndCall, setCoordinator, transferOwnership."},{"id":"06","title":"The code cannot change","status":"fail","detail":"It is a proxy. The code that runs lives at 0xB55ece1aeD9AD524956cc5F1e6a461fF1F318a1c."},{"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 29 days."}],"score":60,"verdict":"danger"}