{"hook":"0x83d6fa59BEF503112887b16277CF559fDC93E0C4","block":93431162,"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":3,"firstTime":1786568527,"lastTime":1786597734},"pools":[{"id":"0x0edd4f4c914526d631488742a15001be0b5515d6f2bfebe516a16cf83348da59","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0x2C0a57ef2698a881CDa6f5106Fa6748FA4713a81","fee":3000,"tickSpacing":60,"hooks":"0x83d6fa59BEF503112887b16277CF559fDC93E0C4"},"symbols":["ETH","PFT"],"state":{"sqrtP":"1754594323528994022430490338726599","tick":200118,"protocolFee":0,"lpFee":3000,"liquidity":"24337914850821350382"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"251952136674","paid":"251952136674","got":"120707511082511525567","expected":"123170929676032168945","feePpm":3000,"takePpm":20000},{"zeroForOne":false,"ok":true,"amountIn":"269494873341880250193","paid":"269494873341880250193","got":"536612799683","expected":"547564081309","feePpm":3000,"takePpm":20000}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-3469733198","-1640800210142588326"],"removed":["3469733197","1640800210142588325"]}},{"id":"0x4d1ab1a929c89bfdfe6022148e72fe881edbaa5a3d0db2deaf8c0111e2b19d48","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0x14CA6B5c38a9eEdd22244dCCc949cDcef3ea46cc","fee":3000,"tickSpacing":60,"hooks":"0x83d6fa59BEF503112887b16277CF559fDC93E0C4"},"symbols":["ETH","CLF2"],"state":{"sqrtP":"768578659290135594210003010515695","tick":183608,"protocolFee":0,"lpFee":3000,"liquidity":"10564200069845956445"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"115822771186","paid":"115822771186","got":"10648455294035032712","expected":"10865770708199012971","feePpm":3000,"takePpm":20000},{"zeroForOne":false,"ok":true,"amountIn":"51240736049464303116","paid":"51240736049464303116","got":"531744095569","expected":"542596015886","feePpm":3000,"takePpm":20000}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-3490051748","-307092808800420716"],"removed":["3490051747","307092808800420715"]}}],"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":"3 pools over 68 days."}],"score":75,"verdict":"caution"}