{"hook":"0x19B4517dED421d738051545e6C5d461ef13460cc","block":93001033,"bits":8396,"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":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":4393,"selectors":["0x3fc8cef3","0x575e24b4","0x65d96c82","0x82c8e52f","0xb47b2fb1","0xc748713e","0xd3618cca","0xd6ae6e44","0xdc4c90d3","0xdc98354e","0xf3201424"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":3,"addresses":[]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0x3fc8cef3","name":"weth()"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x65d96c82","name":"listings(address)"},{"selector":"0x82c8e52f","name":"requiredFlags()"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xc748713e","name":"creatorFeesAccrued(address)"},{"selector":"0xd3618cca","name":"graduate()"},{"selector":"0xd6ae6e44","name":"claimCreatorFees(address)"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xf3201424","name":"register(address,address,address)"}],"history":{"pools":18,"firstTime":1789955500,"lastTime":1791497155},"pools":[{"id":"0x97bf96fd7f3b720e9fc09339054861ae4cbf4ad9e4a208b6b885720dbcc60f21","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0xE5cD5c76680baD7599873Cb3047815CD4eD0fa8D","fee":0,"tickSpacing":60,"hooks":"0x19B4517dED421d738051545e6C5d461ef13460cc"},"symbols":["ETH","$DIFF"],"state":{"sqrtP":"1743257388582474558137827815753185","tick":199988,"protocolFee":0,"lpFee":0,"liquidity":"28982753489666670972254"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"142974631383550","paid":"142974631383550","got":"68519056815031009826526","expected":"69211093384400411057186","feePpm":0,"takePpm":9999},{"zeroForOne":false,"ok":true,"amountIn":"318853786071521261566873","paid":"318853786071521261566873","got":"651697144544880","expected":"658279943984727","feePpm":0,"takePpm":10000}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-4220336155930","-1911475415900668661808"],"removed":["4220336155929","1911475415900668661807"]}},{"id":"0x58f6a5d041401cadeb808230547849944fa75655aea831741f9ad9455c4bce93","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0x6B562B64f156077B96C4849c29d64f571dF77F15","fee":0,"tickSpacing":60,"hooks":"0x19B4517dED421d738051545e6C5d461ef13460cc"},"symbols":["ETH","FPRE"],"state":{"sqrtP":"56022778374048024763293799376659755","tick":269392,"protocolFee":0,"lpFee":0,"liquidity":"19205017640505274310"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"13579996412","paid":"13579996412","got":"6718774206423410796609","expected":"6786606696243415741934","feePpm":0,"takePpm":9996},{"zeroForOne":false,"ok":true,"amountIn":"1322423721964467096301","paid":"1322423721964467096301","got":"2618143322","expected":"2644589214","feePpm":0,"takePpm":10000}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-81292231","-43568669033567891159"],"removed":["81292230","43568669033567891158"]}}],"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 claimCreatorFees."},{"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":"18 pools over 28 days."}],"score":88,"verdict":"caution"}