{"hook":"0xe10365Af44cb192236994c9af915a06ACf382080","block":93274682,"bits":8320,"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":false},{"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":false},{"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":false},{"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":16081,"selectors":["0x0749e51e","0x0c340a24","0x1587e58f","0x15c15023","0x19b98ba5","0x2178cb72","0x2e9da083","0x2fbbd7f0","0x30750479","0x37159f4a","0x3c3fe99d","0x3f8136da","0x52b724bd","0x55bab301","0x575e24b4","0x5aadabf5","0x7428951e","0x74e586ed","0x89e71eb7","0x8a20a658","0x8b7ceabc","0x8cebd942","0x95c48bd5","0xa8c5a215","0xaca29979","0xb72704a5","0xbc688228","0xbff2c8f3","0xc4e833ce","0xc87a3e15","0xd3dedd4e","0xdc4c90d3","0xdc98354e","0xe0c05596","0xe3056a34","0xe58bb639","0xeb9ee8e0","0xecd8e907","0xf8848888","0xf937aac9"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":0,"addresses":[]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0x0749e51e","name":"WALK_STEPS()"},{"selector":"0x0c340a24","name":"governor()"},{"selector":"0x1587e58f","name":"cancelFeeTable(bytes32)"},{"selector":"0x15c15023","name":"nextFeeTable(bytes32)"},{"selector":"0x19b98ba5","name":"MIN_MEMORY_SECONDS()"},{"selector":"0x2178cb72","name":"MAX_WINDOW_SECONDS()"},{"selector":"0x2e9da083","name":"installCalendar(uint48[],uint40)"},{"selector":"0x2fbbd7f0","name":"quoteFee(bytes32,bool,int256,uint160)"},{"selector":"0x30750479","name":"calendarEnd()"},{"selector":"0x37159f4a","name":"MIN_SESSION_FEE()"},{"selector":"0x3c3fe99d","name":"cancelWindow(bytes32)"},{"selector":"0x3f8136da","name":"MAX_FEE_OUTSIDE_WINDOW()"},{"selector":"0x52b724bd","name":"WINDOW_SPACING()"},{"selector":"0x55bab301","name":"MAX_TRIGGER()"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x5aadabf5","name":"calendarStart()"},{"selector":"0x7428951e","name":"MIN_TRIGGER()"},{"selector":"0x74e586ed","name":"calendarEntry(uint256)"},{"selector":"0x89e71eb7","name":"MAX_CALENDAR_ENTRIES()"},{"selector":"0x8a20a658","name":"WINDOW_NOTICE()"},{"selector":"0x8b7ceabc","name":"postWindow(bytes32,uint40,uint40,uint40,uint24)"},{"selector":"0x8cebd942","name":"poolInfo(bytes32)"},{"selector":"0x95c48bd5","name":"proposeGovernor(address)"},{"selector":"0xa8c5a215","name":"reduceWindow(bytes32,uint40,uint40,uint24)"},{"selector":"0xaca29979","name":"MAX_WINDOW_FEE()"},{"selector":"0xb72704a5","name":"registerPool((address,address,uint24,int24,address),bytes32,(uint24,uint24,uint24,uint24,uint24,uint16,uint16))"},{"selector":"0xbc688228","name":"MAX_SLOPE_TENTHS()"},{"selector":"0xbff2c8f3","name":"calendarLength()"},{"selector":"0xc4e833ce","name":"getHookPermissions()"},{"selector":"0xc87a3e15","name":"TABLE_SPACING()"},{"selector":"0xd3dedd4e","name":"earningsWindow(bytes32)"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xe0c05596","name":"postFeeTable(bytes32,(uint24,uint24,uint24,uint24,uint24,uint16,uint16),uint40)"},{"selector":"0xe3056a34","name":"pendingGovernor()"},{"selector":"0xe58bb639","name":"acceptGovernor()"},{"selector":"0xeb9ee8e0","name":"TABLE_NOTICE()"},{"selector":"0xecd8e907","name":"sessionAt(uint256)"},{"selector":"0xf8848888","name":"MAX_MEMORY_SECONDS()"},{"selector":"0xf937aac9","name":"MAX_SESSION_FEE()"}],"history":{"pools":5,"firstTime":1791287834,"lastTime":1791380058},"pools":[{"id":"0xcc3ea76273406cc38c117b894d239cca1c1a49167f587ec7b0a4021f8f2c42f1","key":{"currency0":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","currency1":"0xc0D6457C16Cc70d6790Dd43521C899C87ce02f35","fee":8388608,"tickSpacing":10,"hooks":"0xe10365Af44cb192236994c9af915a06ACf382080"},"symbols":["USDG","META"],"state":{"sqrtP":"2983658211478983896987138380799729","tick":210737,"protocolFee":0,"lpFee":0,"liquidity":"3537588117467677"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"8353922","paid":"8353922","got":"11822828281291216","expected":"11846519438727039","feePpm":0,"takePpm":2000},{"zeroForOne":false,"ok":true,"amountIn":"4806828278941948","paid":"4806828278941948","got":"3382474","expected":"3389252","feePpm":0,"takePpm":2000}],"roundTrip":{"ok":true,"lossPpm":2,"added":["-788471","-1125934336339781"],"removed":["788470","1125934336339780"]}},{"id":"0x99a4425f1cac0d964ac8ec9855ac7215b8ed34306dbc89ec25b53f49fd3af00e","key":{"currency0":"0x4a0E65A3EcceC6dBe60AE065F2e7bb85Fae35eEa","currency1":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","fee":8388608,"tickSpacing":10,"hooks":"0xe10365Af44cb192236994c9af915a06ACf382080"},"symbols":["SPCX","USDG"],"state":{"sqrtP":"962447642890558220755604","tick":-226379,"protocolFee":0,"lpFee":0,"liquidity":"1195721540995480"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"1756431846633437","paid":"1756431846633437","got":"258671","expected":"259190","feePpm":0,"takePpm":2003},{"zeroForOne":false,"ok":true,"amountIn":"1556730","paid":"1556730","got":"10526940715880909","expected":"10548038194624964","feePpm":0,"takePpm":2001}],"roundTrip":{"ok":true,"lossPpm":3,"added":["-2467019784979804","-359846"],"removed":["2467019784979803","359845"]}}],"openCallbacks":[],"checks":[{"id":"01","title":"Permissions that touch your money","status":"pass","detail":"None of the permissions that let a hook take from swaps or from LPs are switched on."},{"id":"02","title":"What it takes from a swap","status":"pass","detail":"It takes 0.20% 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":"pass","detail":"No owner and no admin functions found."},{"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":"5 pools over 13 days."}],"score":98,"verdict":"caution"}