{"hook":"0x5A16eE09c971407E2CC68485A30C4D4D6D1CB8CC","block":93117424,"bits":14540,"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":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":15265,"selectors":["0x09f2c019","0x173d13b3","0x1abf4fc8","0x21d0ee70","0x259982e5","0x2d2c5565","0x2dd31000","0x2ed9666f","0x35d98dbb","0x35ec137d","0x384bd6c6","0x3be05c51","0x3c67eeaa","0x3ca7cfda","0x4df62c6b","0x575e24b4","0x5fedb7b1","0x6217293a","0x62308e85","0x68233942","0x6c2bbe7e","0x6c5c6e3d","0x6fe7e6eb","0x70ab0db9","0x7496633d","0x75c71376","0x791d40f0","0x7aadef8b","0x838ac6fd","0x870b6e59","0x89f69f01","0x8cebd942","0x8de652a3","0x9025e53e","0x902d55a5","0x91dd7346","0x9ed4daab","0x9f063efc","0xa811865a","0xa94670df","0xb47b2fb1","0xb5fc0ff6","0xb6a8b0fa","0xc4e833ce","0xc7a85860","0xdae5f67f","0xdc98354e","0xe1b4af69","0xeeb2a5f2","0xf59452fb","0xf92f23a7"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":9,"addresses":["0x561deB125684F3A6F39414897cC9309658321f4a"]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0x09f2c019","name":"getPoolInfo(bytes32)"},{"selector":"0x173d13b3","name":"noteCreatorVestClaim(bytes32,address)"},{"selector":"0x1abf4fc8","name":"CREATOR_SHARE_OF_HOOK_BPS()"},{"selector":"0x21d0ee70","name":"beforeRemoveLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),bytes)"},{"selector":"0x259982e5","name":"beforeAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),bytes)"},{"selector":"0x2d2c5565","name":"TREASURY()"},{"selector":"0x2dd31000","name":"FACTORY()"},{"selector":"0x2ed9666f","name":"observationCount(bytes32)"},{"selector":"0x35d98dbb","name":"convertFees(bytes32,uint256)"},{"selector":"0x35ec137d","name":"claimFallbackPayout(bytes32)"},{"selector":"0x384bd6c6","name":"CONVERT_TWAP_SECONDS()"},{"selector":"0x3be05c51","name":"primeHookData(bytes)"},{"selector":"0x3c67eeaa","name":"PROTOCOL_SHARE_OF_HOOK_BPS()"},{"selector":"0x3ca7cfda","name":"claimTreasuryPayout(bytes32)"},{"selector":"0x4df62c6b","name":"maxConvertAmount(bytes32)"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x5fedb7b1","name":"CONVERT_MAX_TICK_TOTAL()"},{"selector":"0x6217293a","name":"setLiquidityAddLocked(bytes32,bool)"},{"selector":"0x62308e85","name":"POOL_MANAGER()"},{"selector":"0x68233942","name":"consultTwap(bytes32,uint32)"},{"selector":"0x6c2bbe7e","name":"afterRemoveLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0x6c5c6e3d","name":"pendingTreasuryPayout(bytes32)"},{"selector":"0x6fe7e6eb","name":"afterInitialize(address,(address,address,uint24,int24,address),uint160,int24)"},{"selector":"0x70ab0db9","name":"linkedPoolId(bytes32)"},{"selector":"0x7496633d","name":"CONVERT_COOLDOWN_SECONDS()"},{"selector":"0x75c71376","name":"pokeAlive(bytes32)"},{"selector":"0x791d40f0","name":"MIN_CONVERT_BPS()"},{"selector":"0x7aadef8b","name":"TIMELOCK()"},{"selector":"0x838ac6fd","name":"observationIndex(bytes32)"},{"selector":"0x870b6e59","name":"lastCreatorTouch(bytes32)"},{"selector":"0x89f69f01","name":"HOOK_FEE_BPS()"},{"selector":"0x8cebd942","name":"poolInfo(bytes32)"},{"selector":"0x8de652a3","name":"MAX_CONVERT_BPS_PER_CALL()"},{"selector":"0x9025e53e","name":"HOOK_OBS_CARDINALITY()"},{"selector":"0x902d55a5","name":"TOTAL_SUPPLY()"},{"selector":"0x91dd7346","name":"unlockCallback(bytes)"},{"selector":"0x9ed4daab","name":"liquidityAddLocked(bytes32)"},{"selector":"0x9f063efc","name":"afterAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0xa811865a","name":"lastSwapAt(bytes32)"},{"selector":"0xa94670df","name":"pendingQuotePayout(bytes32)"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xb5fc0ff6","name":"setFeeRecipient(bytes32,address)"},{"selector":"0xb6a8b0fa","name":"beforeDonate(address,(address,address,uint24,int24,address),uint256,uint256,bytes)"},{"selector":"0xc4e833ce","name":"getHookPermissions()"},{"selector":"0xc7a85860","name":"pendingConvertAmount(bytes32)"},{"selector":"0xdae5f67f","name":"lastConvertAt(bytes32)"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xe1b4af69","name":"afterDonate(address,(address,address,uint24,int24,address),uint256,uint256,bytes)"},{"selector":"0xeeb2a5f2","name":"MAX_CONVERT_STALENESS_SECONDS()"},{"selector":"0xf59452fb","name":"CONVERT_SWAP_TOL_BPS()"},{"selector":"0xf92f23a7","name":"accrued(bytes32)"}],"history":{"pools":9,"firstTime":1785087071,"lastTime":1787592476},"pools":[{"id":"0xdd1058a06ef7a53bbe7ca2d1022234ff120857d44f3ae12cccba468ec0020ba3","key":{"currency0":"0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73","currency1":"0xD47D456e6526341591985ADCE388568AEfFCF89F","fee":0,"tickSpacing":60,"hooks":"0x5A16eE09c971407E2CC68485A30C4D4D6D1CB8CC"},"symbols":["WETH","MEEKO"],"state":{"sqrtP":"2143223489001539438565525547379658","tick":204119,"protocolFee":0,"lpFee":0,"liquidity":"36966822601955642064687"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"683272986642229","paid":"683272986642229","got":"494752623688155738334793","expected":"499750124937531048823023","feePpm":0,"takePpm":10000},{"zeroForOne":false,"ok":false,"why":"thin","reason":"no liquidity above the price"}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-4038554801532","-3245984407744904146332"],"removed":["4038554801531","3245984407744904146331"]}},{"id":"0x82d11d9e22a145b298095fe2f88ba18a1f1087f8763fb7c28f3b39b21cd6e7d0","key":{"currency0":"0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73","currency1":"0x2FF939Dc9ADd31812E40261aC2CD94d1081eA9Cf","fee":0,"tickSpacing":60,"hooks":"0x5A16eE09c971407E2CC68485A30C4D4D6D1CB8CC"},"symbols":["WETH","NUT"],"state":{"sqrtP":"2143223489001539439433065985959930","tick":204119,"protocolFee":0,"lpFee":0,"liquidity":"36966822601955642064687"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"683272986642229","paid":"683272986642229","got":"494752623688155738735227","expected":"499750124937531049227502","feePpm":0,"takePpm":10000},{"zeroForOne":false,"ok":false,"why":"thin","reason":"no liquidity above the price"}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-4038554801532","-3245984407744904186810"],"removed":["4038554801531","3245984407744904186809"]}}],"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":"pass","detail":"It takes 1% 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":"No owner() but it has claimFallbackPayout, claimTreasuryPayout, setLiquidityAddLocked, setFeeRecipient."},{"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":"9 pools over 85 days."}],"score":88,"verdict":"caution"}