{"hook":"0xf667C59Cd75Ab1d7943fC8284EDAb51F3A76bfFF","block":92920402,"bits":16383,"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":true},{"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":true},{"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":true},{"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":true},{"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":true},{"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":true},{"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":true},{"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":true},{"bit":0,"key":"afterRemoveLiquidityReturnDelta","label":"After remove returns delta","risk":2,"does":"Can take part of what LPs withdraw.","fn":null,"on":true}],"code":{"size":21267,"selectors":["0xe30c3978","0xe74ec265","0xf2fde38b","0xf60e72e7","0xfc1db565","0xdc98354e","0xe039c190","0xe1b4af69","0xe1f0e331","0xe20a7121","0xcf1e6a41","0xd0ad47eb","0xdc2b084d","0xdc4c90d3","0xdc6c0a45","0xc4e833ce","0xc8258905","0xcb004645","0xcf054cf3","0xb5d437a0","0xb6a8b0fa","0xb97a2319","0xb9cf9bf7","0xc301b4fe","0xa74e3c9e","0xb034a6fb","0xb04500b1","0xb197ba73","0xb47b2fb1","0x98250605","0x9ba0076f","0x9e60d434","0x9ed7e491","0x9f063efc","0x8899bd91","0x8a29e2de","0x8da5cb5b","0x969fb981","0x6fe7e6eb","0x715018a6","0x72543905","0x79ba5097","0x84aa0527","0x6395e14a","0x68bbcf4e","0x6c2bbe7e","0x6dbb05c3","0x6f7c783f","0x5028db1a","0x52d1902d","0x5384ab4b","0x575e24b4","0x606003e8","0x4b38474d","0x4b3e8d73","0x4e17f6c7","0x4e5823bc","0x35ce7aa2","0x3f78a002","0x43bb31ec","0x46ca626b","0x4858decd","0x22efec49","0x259982e5","0x2a3b9500","0x30c0c5a6","0x16eebd1e","0x1b206fa8","0x1d3c85ff","0x21211816","0x21d0ee70","0x03fd2a45","0x05bf7bbe","0x0885f732","0x16ed63bf"],"delegatecall":true,"selfdestruct":false,"create":false,"calls":5,"addresses":["0xFFFD8963efd1FC6a506488495d951D5163961682"]},"proxy":{"implementation":"0x1e09D23720FD12270C68D7B587FA9fB3De046990","admin":null,"beacon":null,"clone":false},"owner":"0x30e4B6dc3139e28b5C5E493D395a0aca4f1CddBa","functions":[{"selector":"0xe30c3978","name":"pendingOwner()"},{"selector":"0xe74ec265","name":"OBSERVATION_CARDINALITY()"},{"selector":"0xf2fde38b","name":"transferOwnership(address)"},{"selector":"0xf60e72e7","name":"poolLpFeePips(bytes32)"},{"selector":"0xfc1db565","name":"setFeeExemptLocker(address,bool)"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xe039c190","name":"beginExemptionAdminTransfer(address)"},{"selector":"0xe1b4af69","name":"afterDonate(address,(address,address,uint24,int24,address),uint256,uint256,bytes)"},{"selector":"0xe1f0e331","name":"platformShareBps(bytes32)"},{"selector":"0xe20a7121","name":"HOOK_KIND()"},{"selector":"0xcf1e6a41","name":"registerCanonicalPool(((address,address,uint24,int24,address),address,address,address,address,address,address,address,int24,int24,uint128,bytes32,uint16,uint8,(uint24,uint24,uint24,uint24,uint24),(uint24,uint24,uint24,uint24,uint24)),uint16)"},{"selector":"0xd0ad47eb","name":"settleClaim(bytes32,bool,uint8,uint256)"},{"selector":"0xdc2b084d","name":"totalLiabilityByCurrency(uint256)"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xdc6c0a45","name":"rewardsInToken(bytes32)"},{"selector":"0xc4e833ce","name":"getHookPermissions()"},{"selector":"0xc8258905","name":"registeredRewardEscrow(bytes32)"},{"selector":"0xcb004645","name":"bucketLiability(bytes32,bool,uint8)"},{"selector":"0xcf054cf3","name":"rewardsInStock(bytes32)"},{"selector":"0xb5d437a0","name":"FEE_LOGIC_RUNTIME_CODEHASH()"},{"selector":"0xb6a8b0fa","name":"beforeDonate(address,(address,address,uint24,int24,address),uint256,uint256,bytes)"},{"selector":"0xb97a2319","name":"implementationAddress()"},{"selector":"0xb9cf9bf7","name":"armCanonicalInitialLiquiditySalt(bytes32,bytes32)"},{"selector":"0xc301b4fe","name":"defaultLpFeePips()"},{"selector":"0xa74e3c9e","name":"registeredQuoteAsset(bytes32)"},{"selector":"0xb034a6fb","name":"setPoolFeeExemptSuspended(bytes32,address,bool)"},{"selector":"0xb04500b1","name":"registeredBurnExecutor(bytes32)"},{"selector":"0xb197ba73","name":"policyHash(bytes32)"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0x98250605","name":"MAX_POOL_LP_FEE_PIPS()"},{"selector":"0x9ba0076f","name":"setPoolFeeExemptLocker(bytes32,address,bool)"},{"selector":"0x9e60d434","name":"impairmentController()"},{"selector":"0x9ed7e491","name":"poolFeeExemptSuspended(bytes32,address)"},{"selector":"0x9f063efc","name":"afterAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0x8899bd91","name":"MIN_PLATFORM_SHARE_BPS()"},{"selector":"0x8a29e2de","name":"initialize(address,address,address,address,address,address,address,address)"},{"selector":"0x8da5cb5b","name":"owner()"},{"selector":"0x969fb981","name":"registeredToken(bytes32)"},{"selector":"0x6fe7e6eb","name":"afterInitialize(address,(address,address,uint24,int24,address),uint160,int24)"},{"selector":"0x715018a6","name":"renounceOwnership()"},{"selector":"0x72543905","name":"MIN_TOTAL_FEE_PIPS()"},{"selector":"0x79ba5097","name":"acceptOwnership()"},{"selector":"0x84aa0527","name":"registeredReinvestmentExecutor(bytes32)"},{"selector":"0x6395e14a","name":"setPoolLpFeePips(bytes32,uint24)"},{"selector":"0x68bbcf4e","name":"settleExecutionGas(bytes32,uint8,uint256)"},{"selector":"0x6c2bbe7e","name":"afterRemoveLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0x6dbb05c3","name":"pendingExemptionAdmin()"},{"selector":"0x6f7c783f","name":"executionObservation(bytes32,uint32)"},{"selector":"0x5028db1a","name":"feeLogic()"},{"selector":"0x52d1902d","name":"proxiableUUID()"},{"selector":"0x5384ab4b","name":"registerPool(((address,address,uint24,int24,address),address,address,address,address,address,address,address,int24,int24,uint128,bytes32,uint16,uint8,(uint24,uint24,uint24,uint24,uint24),(uint24,uint24,uint24,uint24,uint24)),uint16)"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x606003e8","name":"HOOK_VERSION()"},{"selector":"0x4b38474d","name":"feeSink()"},{"selector":"0x4b3e8d73","name":"settleRewardEscrow(uint256)"},{"selector":"0x4e17f6c7","name":"poolFeeExemptLockers(bytes32)"},{"selector":"0x4e5823bc","name":"SWAP_LOGIC_RUNTIME_CODEHASH()"},{"selector":"0x35ce7aa2","name":"exemptionAdmin()"},{"selector":"0x3f78a002","name":"acceptExemptionAdmin()"},{"selector":"0x43bb31ec","name":"setDefaultLpFeePips(uint24)"},{"selector":"0x46ca626b","name":"TICK_SPACING()"},{"selector":"0x4858decd","name":"poolFeeExemptLocker(bytes32,address)"},{"selector":"0x22efec49","name":"rewardsInStable(bytes32)"},{"selector":"0x259982e5","name":"beforeAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),bytes)"},{"selector":"0x2a3b9500","name":"_delegateViewToSwapLogic()"},{"selector":"0x30c0c5a6","name":"swapLogic()"},{"selector":"0x16eebd1e","name":"launcher()"},{"selector":"0x1b206fa8","name":"MAX_PLATFORM_SHARE_BPS()"},{"selector":"0x1d3c85ff","name":"OBSERVATION_SPACING()"},{"selector":"0x21211816","name":"feeExemptLocker(address)"},{"selector":"0x21d0ee70","name":"beforeRemoveLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),bytes)"},{"selector":"0x03fd2a45","name":"DEAD()"},{"selector":"0x05bf7bbe","name":"feeExemptLockers()"},{"selector":"0x0885f732","name":"poolConfig(bytes32)"},{"selector":"0x16ed63bf","name":"initializeLegacy(address,address,address,address)"}],"history":{"pools":188,"firstTime":1785226091,"lastTime":1791594774},"pools":[{"id":"0x9349a66b6a567d616d5107c75a3490de28efe01c11436790c3bfe0dc6026bf02","key":{"currency0":"0x11B05cE3eb125c758280b6eDfaF33CD2C18c118C","currency1":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","fee":8388608,"tickSpacing":200,"hooks":"0xf667C59Cd75Ab1d7943fC8284EDAb51F3A76bfFF"},"symbols":["WALLSTREET","USDG"],"state":{"sqrtP":"155521632069210611563","tick":-400997,"protocolFee":0,"lpFee":0,"liquidity":"1962596360023781994"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"46181207426145336329747","paid":"46181207426145336329747","got":"173070","expected":"177937","feePpm":0,"takePpm":27353},{"zeroForOne":false,"ok":true,"amountIn":"1926248","paid":"1926248","got":"485998764293053778329016","expected":"499657792595238416223663","feePpm":0,"takePpm":27337}],"roundTrip":{"ok":true,"lossPpm":88,"added":["-3902391456306009224881","-11455"],"removed":["3902391456306009224880","11454"]}},{"id":"0xcb77aa0808f424cd58d3e90c5fe80e28d607a89217218a5322046d7d90483d7e","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0xfFfa68a4eFB6671C5d49030BD04b24839A7Cbc63","fee":8388608,"tickSpacing":200,"hooks":"0xf667C59Cd75Ab1d7943fC8284EDAb51F3A76bfFF"},"symbols":["ETH","CRH"],"state":{"sqrtP":"2006324515481296964803322462843016","tick":202799,"protocolFee":0,"lpFee":0,"liquidity":"39488817247519702255074"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"779691023620884","paid":"779691023620884","got":"466252909978647912702494","expected":"499745202488344026684361","feePpm":0,"takePpm":67019},{"zeroForOne":false,"ok":true,"amountIn":"2462454926545890457287","paid":"2462454926545890457287","got":"3582468704058","expected":"3839936371612","feePpm":0,"takePpm":67050}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-4609934031721","-3919878957414997618328"],"removed":["4609934031720","3919878957414997618327"]}}],"openCallbacks":[],"checks":[{"id":"01","title":"Permissions that touch your money","status":"caution","detail":"The address enables before remove liquidity, before swap returns delta, after swap returns delta, after add returns delta, after remove 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 6.71% 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":"caution","detail":"Its pools use a dynamic fee that the hook sets before every swap. It stands at 0% now and can change."},{"id":"05","title":"No one holds the switch","status":"caution","detail":"Owned by 0x30e4B6dc3139e28b5C5E493D395a0aca4f1CddBa. Owner-style functions: transferOwnership, setFeeExemptLocker, settleClaim, setPoolFeeExemptSuspended, setPoolFeeExemptLocker, setPoolLpFeePips."},{"id":"06","title":"The code cannot change","status":"fail","detail":"It is a proxy. The code that runs lives at 0x1e09D23720FD12270C68D7B587FA9fB3De046990."},{"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":"188 pools over 83 days."}],"score":57,"verdict":"danger"}