{"hook":"0xd6E3b294d5907D103A8FEE8019d89426dED82044","block":93429311,"bits":8260,"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":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":6722,"selectors":["0x0e18b681","0x1d769828","0x1fb605e7","0x26782247","0x35659fb8","0x470457c2","0x65dd9d4d","0x6999b377","0x75829def","0x7cd07e47","0x91dd7346","0x94168af8","0x9728538f","0xb47b2fb1","0xc45a0155","0xdc4c90d3","0xdc98354e","0xdcf844a7","0xddbfd8ef","0xe470d5cf","0xf851a440"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":7,"addresses":[]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0x0e18b681","name":"acceptAdmin()"},{"selector":"0x1d769828","name":"collectProtocol(address)"},{"selector":"0x1fb605e7","name":"collectCreator(bytes32,address)"},{"selector":"0x26782247","name":"pendingAdmin()"},{"selector":"0x35659fb8","name":"protocolFeeBps()"},{"selector":"0x470457c2","name":"creatorFees(bytes32,address)"},{"selector":"0x65dd9d4d","name":"register((address,address,uint24,int24,address),address,uint16,address)"},{"selector":"0x6999b377","name":"feeController()"},{"selector":"0x75829def","name":"transferAdmin(address)"},{"selector":"0x7cd07e47","name":"migrator()"},{"selector":"0x91dd7346","name":"unlockCallback(bytes)"},{"selector":"0x94168af8","name":"swapCount(bytes32)"},{"selector":"0x9728538f","name":"FLAGS()"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xc45a0155","name":null},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xdcf844a7","name":"protocolFees(address)"},{"selector":"0xddbfd8ef","name":"policies(bytes32)"},{"selector":"0xe470d5cf","name":"configure(address,address)"},{"selector":"0xf851a440","name":"admin()"}],"history":{"pools":3,"firstTime":1789999199,"lastTime":1790347889},"pools":[{"id":"0x3a6e5673c9a02b89f2b93773cbb9c50e28c39a02abc48e64b0817e1127a05d30","key":{"currency0":"0xdB0D5b51e69B89cf1B3613bf0a553Fc5fCB75474","currency1":"0xFA1FFCB2E4a54Db8150Eb79c9E6eD7d4Ff5D9905","fee":0,"tickSpacing":200,"hooks":"0xd6E3b294d5907D103A8FEE8019d89426dED82044"},"symbols":["JPT","NFS"],"state":{"sqrtP":"1907244204515137989672522614733","tick":63624,"protocolFee":0,"lpFee":0,"liquidity":"2407280623442144521137"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"31064804243963579","paid":"31064804243963579","got":"17861490017022724137","expected":"17996463493221888299","feePpm":0,"takePpm":7500},{"zeroForOne":false,"ok":true,"amountIn":"28975000000000000029","paid":"28975000000000000029","got":"49600199900049975","expected":"49975012493753123","feePpm":0,"takePpm":7500}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-380147675738503","-178239041229404262"],"removed":["380147675738502","178239041229404261"]}},{"id":"0x238cc7faeee9fbb131f6733731d76e0a556a8822fc85e03512b0aff87aacef82","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0x1D683BB9F6033aCB0928cb97Ad36eb9A19Bd0eFA","fee":0,"tickSpacing":200,"hooks":"0xd6E3b294d5907D103A8FEE8019d89426dED82044"},"symbols":["ETH","FBR"],"state":{"sqrtP":"3968592673230946136787362842329","tick":78280,"protocolFee":0,"lpFee":0,"liquidity":"5925778429877377718"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"59150506882786","paid":"59150506882786","got":"144259649498250326","expected":"148338971206427070","feePpm":0,"takePpm":27500},{"zeroForOne":false,"ok":true,"amountIn":"148413140692031768","paid":"148413140692031768","got":"57495120383319","expected":"59120946409581","feePpm":0,"takePpm":27500}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-417938201677","-993077164762414"],"removed":["417938201676","993077164762413"]}}],"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 2.75% 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 collectProtocol, collectCreator, transferAdmin."},{"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 28 days."}],"score":75,"verdict":"caution"}