{"hook":"0x4494Ac6fA9a0227eb8436f7f241383ec18924044","block":93329173,"bits":68,"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":false},{"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":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":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":6836,"selectors":["0x1242b9e4","0x1871e243","0x91dd7346","0x9b3b0f39","0xb29a8140","0xb47b2fb1","0xc0d78655","0xce8f6078","0xd3335553","0xd5f39488","0xdc4c90d3","0xe229cd76","0xeb13554f","0xf887ea40"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":14,"addresses":["0x121bdbdace881B9bdD08185D5d1a1bdC9a5e9959","0x121BDbdaCe881C9958dbDd995c8819985A5b1959","0xfFfd8963EFd1fC6A506488495d951d5263988d25","0x121BDbDaCE881B9bdD081c9959dA5CDd195C9959"]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0x1242b9e4","name":"registerPool((address,address,uint24,int24,address),address,address,uint24,uint24,uint24,uint24)"},{"selector":"0x1871e243","name":"setPlatformFeeRecipient(address)"},{"selector":"0x91dd7346","name":"unlockCallback(bytes)"},{"selector":"0x9b3b0f39","name":null},{"selector":"0xb29a8140","name":"recoverToken(address,uint256)"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xc0d78655","name":"setRouter(address)"},{"selector":"0xce8f6078","name":"configs(bytes32)"},{"selector":"0xd3335553","name":"recoverETH(uint256)"},{"selector":"0xd5f39488","name":"deployer()"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xe229cd76","name":"MAX_SLIPPAGE_BPS()"},{"selector":"0xeb13554f","name":"platformFeeRecipient()"},{"selector":"0xf887ea40","name":"router()"}],"history":{"pools":4,"firstTime":1789303978,"lastTime":1789321563},"pools":[{"id":"0xbf08fc89df30c0a9e8eba25cbc90fc9da230f5b5f18dadda62d0f3d58c62658f","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0x06Bbcb968109256Cd6F1A6B013ecF744Df1fB3CA","fee":0,"tickSpacing":8,"hooks":"0x4494Ac6fA9a0227eb8436f7f241383ec18924044"},"symbols":["ETH","333"],"state":{"sqrtP":"2288365368703642695664182415294409","tick":205430,"protocolFee":0,"lpFee":0,"liquidity":"34619742219751194906402"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"98904885139240","paid":"98904885139240","got":"80771131294914305915678","expected":"82503709187859352314277","feePpm":0,"takePpm":21000},{"zeroForOne":false,"ok":true,"amountIn":"17491712772318434436065","paid":"17491712772318434436065","got":"20526545496256","expected":"20966849332232","feePpm":0,"takePpm":21000}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-3550393120907","-2987112579727175296257"],"removed":["3550393120906","2987112579727175296256"]}},{"id":"0xd6861629f9ad8a3bbdef341f81380bce8897a7f6d9f7891154686b44ba879151","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0x47ee17287226d9f1512B5088F3F583A599473E02","fee":0,"tickSpacing":8,"hooks":"0x4494Ac6fA9a0227eb8436f7f241383ec18924044"},"symbols":["ETH","FIX"],"state":{"sqrtP":"2285779902747014292628596355387244","tick":205407,"protocolFee":0,"lpFee":0,"liquidity":"34661308767062818615884"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"120008791986875","paid":"120008791986875","got":"96783899013321887291866","expected":"99880184740270265523081","feePpm":0,"takePpm":31000},{"zeroForOne":false,"ok":true,"amountIn":"124739462568589069308","paid":"124739462568589069308","got":"145217160003","expected":"149862910219","feePpm":0,"takePpm":31000}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-3550577365894","-2994059369051089960173"],"removed":["3550577365893","2994059369051089960172"]}}],"openCallbacks":[],"checks":[{"id":"01","title":"Permissions that touch your money","status":"caution","detail":"The address enables 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 3.10% 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":"No owner() but it has setPlatformFeeRecipient, setRouter."},{"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":"4 pools over 36 days."}],"score":75,"verdict":"caution"}