{"hook":"0xa1eCFcE1b6420e72EA5103b45D48B90Dcaa420CC","block":93240105,"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":23928,"selectors":["0xf0f44260","0xf301542b","0xf9b30e4a","0xffc2e22a","0xe838d0a9","0xe92a0fba","0xeb6d3a11","0xecb45cd0","0xd4e077a0","0xdc1c4cc1","0xdc4c90d3","0xdc98354e","0xbfdf71b8","0xc4e833ce","0xc9bcc97e","0xc9e9afad","0xb2516177","0xb47b2fb1","0xbb4869cd","0xbbbfe188","0x8da5cb5b","0x93a98ae3","0xa1f6fbe9","0xae6e34f2","0x71aa7f4b","0x75ea206c","0x7955a45c","0x8b88d0a5","0x683c0955","0x6ac7f41c","0x6d61c6a2","0x59229868","0x5d50a46c","0x5f7684e8","0x61d027b3","0x46b01cd1","0x50c4674b","0x5640ad3d","0x575e24b4","0x3b550354","0x3e17045b","0x418abdd3","0x46477ffc","0x2c2efcac","0x33364f4d","0x38f4547c","0x2a017a33","0x2a12d486","0x2ab1325f","0x2c0653bf","0x1d91829f","0x256e36f2","0x289863f7","0x29134768","0x0d8448b6","0x14b5797b","0x19d1e524","0x1ce4c78b","0x0143b87a","0x08e6a38a","0x0d0fb031"],"delegatecall":true,"selfdestruct":false,"create":false,"calls":20,"addresses":[]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":"0x3Cc4F0CA3476996815cb5D6F86B97e83aB74578d","functions":[{"selector":"0xf0f44260","name":"setTreasury(address)"},{"selector":"0xf301542b","name":"perpRouteModule()"},{"selector":"0xf9b30e4a","name":"mainPoolOf(address)"},{"selector":"0xffc2e22a","name":"protocolTokenOfPool(bytes32)"},{"selector":"0xe838d0a9","name":"taxModule()"},{"selector":"0xe92a0fba","name":"claimOtc((address,address,uint24,int24,address))"},{"selector":"0xeb6d3a11","name":"wrappedNative()"},{"selector":"0xecb45cd0","name":"stagePoolLaunch((address,address,uint24,int24,address),address,address,address)"},{"selector":"0xd4e077a0","name":"setPerpFeeAdapterOnce(address)"},{"selector":"0xdc1c4cc1","name":"launchGate()"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xbfdf71b8","name":"venueRegistry()"},{"selector":"0xc4e833ce","name":"getHookPermissions()"},{"selector":"0xc9bcc97e","name":"setTokenWhitelist(address,bool)"},{"selector":"0xc9e9afad","name":"setSwapperContext(address,bool,bool)"},{"selector":"0xb2516177","name":"canonicalLauncher(address)"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xbb4869cd","name":"B20_FACTORY()"},{"selector":"0xbbbfe188","name":"executionRouter()"},{"selector":"0x8da5cb5b","name":"owner()"},{"selector":"0x93a98ae3","name":"churnRegistry()"},{"selector":"0xa1f6fbe9","name":"FLASH_LP_FEE()"},{"selector":"0xae6e34f2","name":"initialLaunchSqrtPriceX96(bytes32)"},{"selector":"0x71aa7f4b","name":"setCanonicalRuntimeHash(bytes32,bool)"},{"selector":"0x75ea206c","name":"poolAdmins()"},{"selector":"0x7955a45c","name":"setPerpRouteModuleOnce(address)"},{"selector":"0x8b88d0a5","name":"setWrappedNativeOnce(address)"},{"selector":"0x683c0955","name":"canonicalTokenHash(address)"},{"selector":"0x6ac7f41c","name":"launchIntent(bytes32)"},{"selector":"0x6d61c6a2","name":"canonicalRuntimeHash(bytes32)"},{"selector":"0x59229868","name":"poolKind(bytes32)"},{"selector":"0x5d50a46c","name":"perpFeeAdapter()"},{"selector":"0x5f7684e8","name":"isTokenAdmitted(address)"},{"selector":"0x61d027b3","name":"treasury()"},{"selector":"0x46b01cd1","name":"isMainPool(bytes32)"},{"selector":"0x50c4674b","name":"feeTierAllowed(uint256)"},{"selector":"0x5640ad3d","name":"onOwnerStakingQuoteRewards(bytes32,address,uint256)"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x3b550354","name":"setTax((address,address,uint24,int24,address),(uint16,uint16,uint16,uint16,uint32,uint32))"},{"selector":"0x3e17045b","name":"churn((address,address,uint24,int24,address))"},{"selector":"0x418abdd3","name":"churnMarket(bytes32)"},{"selector":"0x46477ffc","name":"setCanonicalLauncher(address,bool)"},{"selector":"0x2c2efcac","name":"protocolFeeFlags()"},{"selector":"0x33364f4d","name":"registerCanonicalToken(address)"},{"selector":"0x38f4547c","name":"impactInterceptor()"},{"selector":"0x2a017a33","name":"isMain(address)"},{"selector":"0x2a12d486","name":"setFeeTier(uint24,int24,bool)"},{"selector":"0x2ab1325f","name":"initializeModules(address,address,address,address,address,address,address,address)"},{"selector":"0x2c0653bf","name":"depositOtc((address,address,uint24,int24,address),uint256)"},{"selector":"0x1d91829f","name":"buyAggregator()"},{"selector":"0x256e36f2","name":"perpRouteModuleCodehash()"},{"selector":"0x289863f7","name":"whitelistedTokenHash(address)"},{"selector":"0x29134768","name":"stakingFactory()"},{"selector":"0x0d8448b6","name":"setPairingOpen(address,bool)"},{"selector":"0x14b5797b","name":"onOwnerStakingRewards(bytes32,address,uint256)"},{"selector":"0x19d1e524","name":"setOtcBps((address,address,uint24,int24,address),uint16,uint16)"},{"selector":"0x1ce4c78b","name":"protocolFeeMultiplier()"},{"selector":"0x0143b87a","name":"withdrawOtc((address,address,uint24,int24,address),uint256,address)"},{"selector":"0x08e6a38a","name":"parentMainOfSub(address)"},{"selector":"0x0d0fb031","name":"pairingOpen(address)"}],"history":{"pools":5,"firstTime":1789261634,"lastTime":1789263526},"pools":[{"id":"0x107ee8312f34084d0dd84f3b8220cc6506e8cd76dbafb060f52b74b57362e37c","key":{"currency0":"0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73","currency1":"0x7198FdA142D227eE0a1c301192E93Dea142F4E77","fee":6000,"tickSpacing":60,"hooks":"0xa1eCFcE1b6420e72EA5103b45D48B90Dcaa420CC"},"symbols":["WETH","FBTEST"],"state":{"sqrtP":"79228162502230417309376343825","tick":-1,"protocolFee":163880,"lpFee":6000,"liquidity":"3007456977136835362"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"1503728488796818","paid":"1503728488796818","got":"1494027167418946","expected":"1493903528095050","feePpm":6040,"takePpm":-82},{"zeroForOne":false,"ok":true,"amountIn":"114200229","paid":"114200229","got":"113396949","expected":"113510459","feePpm":6040,"takePpm":1000}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-8887940922067","-9762158409070"],"removed":["8887940922066","9762158409069"]}},{"id":"0x58eceb2746e50563895007f4e88e333000d05d9c053f0557ee411e02278daea6","key":{"currency0":"0x8539BB2B94f691dc754C8732c279f480609BF417","currency1":"0xd0601CE157Db5bdC3162BbaC2a2C8aF5320D9EEC","fee":10000,"tickSpacing":200,"hooks":"0xa1eCFcE1b6420e72EA5103b45D48B90Dcaa420CC"},"symbols":["RSTOCK","NVDA"],"state":{"sqrtP":"79228162514264337593543950336","tick":0,"protocolFee":163880,"lpFee":10000,"liquidity":"1076058877428432794041580"},"swaps":[{"zeroForOne":true,"ok":false,"why":"blocked","reason":"PART"},{"zeroForOne":false,"ok":true,"amountIn":"538029438714216397020","paid":"538029438714216397020","got":"532407996155823993777","expected":"532364113560595440861","feePpm":10040,"takePpm":-82}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-4219080449285067193","-3180077971123460456"],"removed":["4219080449285067192","3180077971123460455"]}}],"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":"fail","detail":"One direction works and the other is refused (PART). You may be able to buy and not sell."},{"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 1%, written in the pool key."},{"id":"05","title":"No one holds the switch","status":"caution","detail":"Owned by 0x3Cc4F0CA3476996815cb5D6F86B97e83aB74578d. Owner-style functions: setTreasury, claimOtc, setPerpFeeAdapterOnce, setTokenWhitelist, setSwapperContext, setCanonicalRuntimeHash."},{"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":"5 pools over 37 days."}],"score":55,"verdict":"danger"}