{"hook":"0x1462bBc7A5C1AF4858Be2F02ADed0b4FB35140CC","block":93394356,"bits":204,"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":false},{"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":9656,"selectors":["0x0c5a61f8","0x0fc944e5","0x2211e578","0x27d093b3","0x2c9f47c1","0x34de4cd4","0x3d34106d","0x431a9caa","0x52bf1f6d","0x575e24b4","0x5869c412","0x605c2aa7","0x6797ae59","0x69fbdeb1","0x6aa94fc7","0x77b1264d","0x79ba5097","0x7fa5692b","0x803db96d","0x83ab9227","0x863c704d","0x8da5cb5b","0x8e324fb2","0x92fa7834","0x95e595de","0x9ee852dc","0xa0bf01cf","0xa376c3ed","0xa3f1f88a","0xa3f4bac7","0xac4e4054","0xad091230","0xaf8d60b5","0xb47b2fb1","0xbdec7248","0xd45adfb1","0xda98666d","0xdc4c90d3","0xe30c3978","0xef05198b","0xf2fde38b"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":3,"addresses":[]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":"0x79691dE72De921990C9349fE06af4c06579D82dd","functions":[{"selector":"0x0c5a61f8","name":"setProtocolTreasury(address)"},{"selector":"0x0fc944e5","name":null},{"selector":"0x2211e578","name":null},{"selector":"0x27d093b3","name":null},{"selector":"0x2c9f47c1","name":null},{"selector":"0x34de4cd4","name":null},{"selector":"0x3d34106d","name":"AFTER_SWAP_FLAG()"},{"selector":"0x431a9caa","name":"MAX_TOTAL_FEE_BPS()"},{"selector":"0x52bf1f6d","name":null},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x5869c412","name":null},{"selector":"0x605c2aa7","name":null},{"selector":"0x6797ae59","name":null},{"selector":"0x69fbdeb1","name":"AFTER_SWAP_RETURNS_DELTA_FLAG()"},{"selector":"0x6aa94fc7","name":"BEFORE_SWAP_RETURNS_DELTA_FLAG()"},{"selector":"0x77b1264d","name":null},{"selector":"0x79ba5097","name":"acceptOwnership()"},{"selector":"0x7fa5692b","name":"MODE_DIVIDEND()"},{"selector":"0x803db96d","name":"protocolTreasury()"},{"selector":"0x83ab9227","name":null},{"selector":"0x863c704d","name":"MODE_BASIC()"},{"selector":"0x8da5cb5b","name":"owner()"},{"selector":"0x8e324fb2","name":null},{"selector":"0x92fa7834","name":null},{"selector":"0x95e595de","name":"MIN_TOTAL_FEE_BPS()"},{"selector":"0x9ee852dc","name":"BASIC_CREATOR_FEE_SHARE_BPS()"},{"selector":"0xa0bf01cf","name":null},{"selector":"0xa376c3ed","name":null},{"selector":"0xa3f1f88a","name":"BASIC_HOLDER_DIVIDEND_SHARE_BPS()"},{"selector":"0xa3f4bac7","name":"ALL_HOOK_MASK()"},{"selector":"0xac4e4054","name":"REQUIRED_HOOK_FLAGS()"},{"selector":"0xad091230","name":"launches(bytes32)"},{"selector":"0xaf8d60b5","name":"claimCreatorFees(bytes32)"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xbdec7248","name":"pendingCreatorFees(bytes32)"},{"selector":"0xd45adfb1","name":"BEFORE_SWAP_FLAG()"},{"selector":"0xda98666d","name":null},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xe30c3978","name":"pendingOwner()"},{"selector":"0xef05198b","name":null},{"selector":"0xf2fde38b","name":"transferOwnership(address)"}],"history":{"pools":3,"firstTime":1786713532,"lastTime":1786720274},"pools":[{"id":"0xc4c0bb5a3a1da778e710abf36eecf1a44deeb1d98b6c3bf8bcf174838fd317c0","key":{"currency0":"0x4b58f7508aAE46035D4Bbadd4F135e58c9a71F8e","currency1":"0xd0601CE157Db5bdC3162BbaC2a2C8aF5320D9EEC","fee":0,"tickSpacing":60,"hooks":"0x1462bBc7A5C1AF4858Be2F02ADed0b4FB35140CC"},"symbols":["T2","NVDA"],"state":{"sqrtP":"10019526829930750397884092","tick":-179520,"protocolFee":0,"lpFee":0,"liquidity":"63232104039563092482066"},"swaps":[{"zeroForOne":true,"ok":false,"why":"thin","reason":"no liquidity below the price"},{"zeroForOne":false,"ok":true,"amountIn":"3998298981270131","paid":"3998298981270131","got":"244880008795690140880722","expected":"249875062468765607300779","feePpm":0,"takePpm":19991}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-1622992203872452093558","-23632354658304"],"removed":["1622992203872452093557","23632354658303"]}},{"id":"0xb61954f752e040b4553b6f7d7a8fc5a6eff34bfb8ad833dad437039339e44c70","key":{"currency0":"0x716043893f17BF5cb93e0F189705DdF366C0AE66","currency1":"0xd0601CE157Db5bdC3162BbaC2a2C8aF5320D9EEC","fee":0,"tickSpacing":60,"hooks":"0x1462bBc7A5C1AF4858Be2F02ADed0b4FB35140CC"},"symbols":["T1","NVDA"],"state":{"sqrtP":"10020438333841634958830989","tick":-179519,"protocolFee":0,"lpFee":0,"liquidity":"63232104039563092482066"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"11370559233687620608188","paid":"11370559233687620608188","got":"178242922968242","expected":"181880533641063","feePpm":0,"takePpm":20000},{"zeroForOne":false,"ok":true,"amountIn":"3998662717524364","paid":"3998662717524364","got":"244857733414286759635349","expected":"249852332714927987692327","feePpm":0,"takePpm":19991}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-1618443980129553669671","-23705101909151"],"removed":["1618443980129553669670","23705101909150"]}}],"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 0x79691dE72De921990C9349fE06af4c06579D82dd. Owner-style functions: setProtocolTreasury, claimCreatorFees, transferOwnership."},{"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":"3 pools over 66 days."}],"score":75,"verdict":"caution"}