{"hook":"0xc282245A22b602c90d04283B22E414f75AFc20c4","block":93175789,"bits":8388,"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":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":7700,"selectors":["0x02d05d3f","0x0885f732","0x1e7fdb4f","0x1e83409a","0x21d0ee70","0x259982e5","0x28079e4a","0x353c0970","0x3f59f17e","0x4bde38c8","0x575e24b4","0x5a987efe","0x5c24b074","0x6c2bbe7e","0x6fe7e6eb","0x85ec9bd9","0x9ce110d7","0x9ec21dc2","0x9f063efc","0xac416ba2","0xb47b2fb1","0xb6a8b0fa","0xbd1022a1","0xc4e833ce","0xd5f39488","0xdc4c90d3","0xdc98354e","0xde90e29b","0xe1b4af69","0xf76835e6","0xfccc2813"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":5,"addresses":[]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0x02d05d3f","name":"creator()"},{"selector":"0x0885f732","name":"poolConfig(bytes32)"},{"selector":"0x1e7fdb4f","name":"pushOwed(address,address)"},{"selector":"0x1e83409a","name":"claim(address)"},{"selector":"0x21d0ee70","name":"beforeRemoveLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),bytes)"},{"selector":"0x259982e5","name":"beforeAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),bytes)"},{"selector":"0x28079e4a","name":"owed(address,address)"},{"selector":"0x353c0970","name":"MAX_TOTAL_BPS()"},{"selector":"0x3f59f17e","name":"setPoolConfig(bytes32,uint32,uint16)"},{"selector":"0x4bde38c8","name":"platform()"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x5a987efe","name":"MAX_ANTI_SNIPER_BLOCKS()"},{"selector":"0x5c24b074","name":"setInitializer(address)"},{"selector":"0x6c2bbe7e","name":"afterRemoveLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0x6fe7e6eb","name":"afterInitialize(address,(address,address,uint24,int24,address),uint160,int24)"},{"selector":"0x85ec9bd9","name":"setCreator(bytes32,address)"},{"selector":"0x9ce110d7","name":"initializer()"},{"selector":"0x9ec21dc2","name":"creators(bytes32)"},{"selector":"0x9f063efc","name":"afterAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0xac416ba2","name":"poolPolicy(bytes32)"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xb6a8b0fa","name":"beforeDonate(address,(address,address,uint24,int24,address),uint256,uint256,bytes)"},{"selector":"0xbd1022a1","name":"MAX_BUYBACK_BPS()"},{"selector":"0xc4e833ce","name":"getHookPermissions()"},{"selector":"0xd5f39488","name":"deployer()"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xde90e29b","name":"creatorBps()"},{"selector":"0xe1b4af69","name":"afterDonate(address,(address,address,uint24,int24,address),uint256,uint256,bytes)"},{"selector":"0xf76835e6","name":"platformBps()"},{"selector":"0xfccc2813","name":"BURN_ADDRESS()"}],"history":{"pools":6,"firstTime":1786312464,"lastTime":1786330717},"pools":[{"id":"0x1b5a8261dd08653339174452b7fd14ab0f0a3553f9fbe6cdfce3083b0b288674","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0x95e46f69291F063897e0Dbfaf70555C1a8B1A0f5","fee":3000,"tickSpacing":60,"hooks":"0xc282245A22b602c90d04283B22E414f75AFc20c4"},"symbols":["ETH","FWS"],"state":{"sqrtP":"41114770375850720079680306349766476","tick":263204,"protocolFee":0,"lpFee":3000,"liquidity":"1541061440912969910550"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"1484812698319","paid":"1484812698319","got":"390492804686559490958857","expected":"398462045598530092815160","feePpm":3000,"takePpm":20000},{"zeroForOne":false,"ok":true,"amountIn":"159172790679538406978124","paid":"159172790679538406978124","got":"577387425841","expected":"589170842694","feePpm":3000,"takePpm":20000}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-9005391971","-2534277909777878140038"],"removed":["9005391970","2534277909777878140037"]}},{"id":"0xf9935a0b38b9b1556c11f50cd4e58d48a3a95b2fb4b22c126cacd1f4471a1cf7","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0x75320E4B9811054c07bAF24E368097d9E4c2517C","fee":3000,"tickSpacing":60,"hooks":"0xc282245A22b602c90d04283B22E414f75AFc20c4"},"symbols":["ETH","S60"],"state":{"sqrtP":"35205032206572745593797109692785386","tick":260100,"protocolFee":0,"lpFee":3000,"liquidity":"1541061440912969910550"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"15584598190","paid":"15584598190","got":"3006527788536053423372","expected":"3067885498506176962624","feePpm":3000,"takePpm":20000},{"zeroForOne":false,"ok":true,"amountIn":"342385308064419067219149","paid":"342385308064419067219149","got":"1693439120619","expected":"1727999102672","feePpm":3000,"takePpm":20000}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-11251449473","-2024897802115855918854"],"removed":["11251449472","2024897802115855918853"]}}],"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% 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.30%, written in the pool key."},{"id":"05","title":"No one holds the switch","status":"caution","detail":"No owner() but it has claim, setPoolConfig, setInitializer, setCreator, BURN_ADDRESS."},{"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":"6 pools over 71 days."}],"score":75,"verdict":"caution"}