{"hook":"0xA8E58a2955a68262BBD4dbA853F0F2876A9b9080","block":93212011,"bits":4224,"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":true},{"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":false},{"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":false},{"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":5045,"selectors":["0xdaf51f80","0xdc4c90d3","0xdf0b6fd1","0xe7c67097","0xf26ef49d","0xfe226e47","0x8aec6463","0x8ec52597","0xac4e4054","0xd2b57a29","0xd5ae331a","0x575e24b4","0x6fe7e6eb","0x737f751f","0x778c6f07","0x791b98bc","0x80fa02f7","0x1a3b8171","0x365ceaa3","0x3b01d64d","0x4b178bd3","0x500b19e7"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":2,"addresses":[]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0xdaf51f80","name":"FEE_0_3_PERCENT()"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xdf0b6fd1","name":"feeAt(uint40,uint256)"},{"selector":"0xe7c67097","name":"FEE_0_5_PERCENT()"},{"selector":"0xf26ef49d","name":"DYNAMIC_FEE_FLAG()"},{"selector":"0xfe226e47","name":"rwaGuard()"},{"selector":"0x8aec6463","name":"rwaOracle()"},{"selector":"0x8ec52597","name":"PRICE_POLICY_ID()"},{"selector":"0xac4e4054","name":"REQUIRED_HOOK_FLAGS()"},{"selector":"0xd2b57a29","name":"maximumOracleAge()"},{"selector":"0xd5ae331a","name":"rwaHookBindingHash()"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x6fe7e6eb","name":"afterInitialize(address,(address,address,uint24,int24,address),uint160,int24)"},{"selector":"0x737f751f","name":"ALL_HOOK_FLAGS_MASK()"},{"selector":"0x778c6f07","name":"FEE_1_PERCENT()"},{"selector":"0x791b98bc","name":"positionManager()"},{"selector":"0x80fa02f7","name":"ROBINHOOD_CHAIN_ID()"},{"selector":"0x1a3b8171","name":"poolIdOf((address,address,uint24,int24,address))"},{"selector":"0x365ceaa3","name":"poolFeeState(bytes32)"},{"selector":"0x3b01d64d","name":"OVERRIDE_FEE_FLAG()"},{"selector":"0x4b178bd3","name":"launchAuthority()"},{"selector":"0x500b19e7","name":"feeOracle()"}],"history":{"pools":6,"firstTime":1788867766,"lastTime":1789882426},"pools":[{"id":"0xc6404bc2cef3f7edcf2561da8cc466c3991bbfa61b1796a43bc090c49a14c28c","key":{"currency0":"0x01741299A3aDaD84c5CfE002f8123b944085eaaa","currency1":"0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73","fee":8388608,"tickSpacing":60,"hooks":"0xA8E58a2955a68262BBD4dbA853F0F2876A9b9080"},"symbols":["ROBINFROG","WETH"],"state":{"sqrtP":"2209158043040899456876440","tick":-209760,"protocolFee":0,"lpFee":10000,"liquidity":"2337710360113182882235210"},"swaps":[{"zeroForOne":true,"ok":false,"why":"thin","reason":"no liquidity below the price"},{"zeroForOne":false,"ok":true,"amountIn":"32591767122039940","paid":"32591767122039940","got":"41772668514009885310561823","expected":"41479525074778533779313217","feePpm":10000,"takePpm":-7067}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-272138463373239267185871","-192636969665591"],"removed":["272138463373239267185870","192636969665590"]}},{"id":"0x095b27762ff1df48f89d1e2bafb4d0373ccd6a85f23c85b77dcf464ec86c7a3c","key":{"currency0":"0x1aF62Ac53CfD675Af3622D8891fCee4A9AF7aaaa","currency1":"0x2e0847E8910a9732eB3fb1bb4b70a580ADAD4FE3","fee":8388608,"tickSpacing":60,"hooks":"0xA8E58a2955a68262BBD4dbA853F0F2876A9b9080"},"symbols":["FLAPPYFLY","GOOGL"],"state":{"sqrtP":"6162979135970427027997918","tick":-189240,"protocolFee":0,"lpFee":10000,"liquidity":"6521606068849605819418970"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"2436435659106630805329","paid":"2436435659106630805329","got":"14698476430398","expected":"14595277501559","feePpm":10000,"takePpm":-7070},{"zeroForOne":false,"ok":true,"amountIn":"253650475158387807","paid":"253650475158387807","got":"41772663658134286426180566","expected":"41479520252979476909995229","feePpm":10000,"takePpm":-7067}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-272137488790239512173387","-1499232773226924"],"removed":["272137488790239512173386","1499232773226923"]}}],"openCallbacks":[],"checks":[{"id":"01","title":"Permissions that touch your money","status":"pass","detail":"None of the permissions that let a hook take from swaps or from LPs are switched on."},{"id":"02","title":"What it takes from a swap","status":"pass","detail":"A swap through it pays the pool fee and nothing else."},{"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":"caution","detail":"Its pools use a dynamic fee that the hook sets before every swap. It stands at 1% now and can change."},{"id":"05","title":"No one holds the switch","status":"pass","detail":"No owner and no admin functions found."},{"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 41 days."}],"score":98,"verdict":"caution"}