{"hook":"0x95390aEF0aD200a701E5E287dbe52702E09fA840","block":93275164,"bits":10304,"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":true},{"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":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":8977,"selectors":["0x1d8ef3ef","0x259982e5","0x4793dc40","0x481c6a75","0x5fdef03f","0x817db73b","0x91dd7346","0xad091230","0xb47b2fb1","0xb7cdddcb","0xc45a0155","0xca266dfe","0xd30afa59","0xdc98354e"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":15,"addresses":[]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0x1d8ef3ef","name":"currentFeeBps(bytes32)"},{"selector":"0x259982e5","name":"beforeAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),bytes)"},{"selector":"0x4793dc40","name":"claimableEth(address)"},{"selector":"0x481c6a75","name":"manager()"},{"selector":"0x5fdef03f","name":"launch((address,address,address,int24,int24,int24,uint128,uint128,uint16,uint16,uint16))"},{"selector":"0x817db73b","name":"collectFees(bytes32)"},{"selector":"0x91dd7346","name":"unlockCallback(bytes)"},{"selector":"0xad091230","name":"launches(bytes32)"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xb7cdddcb","name":"claimEth()"},{"selector":"0xc45a0155","name":null},{"selector":"0xca266dfe","name":"poolKey(bytes32)"},{"selector":"0xd30afa59","name":"bagr()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"}],"history":{"pools":5,"firstTime":1788426542,"lastTime":1788708537},"pools":[{"id":"0x435ef21b02af8d3079d9e3a1e07d3ab381d951253dda7e066742debe2e7ed2a4","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0x38C0BCfC74352a375Af4Bf8983609872FB669e87","fee":10000,"tickSpacing":10,"hooks":"0x95390aEF0aD200a701E5E287dbe52702E09fA840"},"symbols":["ETH","RHRH"],"state":{"sqrtP":"2072349904902711287308073284237129","tick":203447,"protocolFee":0,"lpFee":10000,"liquidity":"39485206870888544759316"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"139843148992968","paid":"139843148992968","got":"94711685372959082747618","expected":"94711685372959082747618","feePpm":10000,"takePpm":0},{"zeroForOne":false,"ok":true,"amountIn":"33436792033759443070370","paid":"33436792033759443070370","got":"48381449515088","expected":"48381449515088","feePpm":10000,"takePpm":0}],"roundTrip":{"ok":false,"stage":"add","reason":"LiquidityLocked"}},{"id":"0xbbfebef749a5ab6d62003bc90d55bdf9af1dd8ef609f7065f17ceb8ef3584721","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0x00AB39B0B63EA8ff0734bBdb7ad0f8b232167A0F","fee":10000,"tickSpacing":10,"hooks":"0x95390aEF0aD200a701E5E287dbe52702E09fA840"},"symbols":["ETH","RH"],"state":{"sqrtP":"1030295907266275949600677206603344","tick":189469,"protocolFee":0,"lpFee":10000,"liquidity":"81887039912186534505641"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"784804936974613","paid":"784804936974613","got":"131373605903423976496550","expected":"131373605903423976496550","feePpm":10000,"takePpm":0},{"zeroForOne":false,"ok":true,"amountIn":"418478151379872645949","paid":"418478151379872645949","got":"2449869959438","expected":"2449869959438","feePpm":10000,"takePpm":0}],"roundTrip":{"ok":false,"stage":"add","reason":"LiquidityLocked"}}],"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":"n/a","detail":"Closed to outside LPs: only the hook's own liquidity is in the pool."},{"id":"04","title":"The fee is the fee","status":"pass","detail":"A fixed fee of 1%, written in the pool key."},{"id":"05","title":"No one holds the switch","status":"caution","detail":"No owner() but it has claimableEth, collectFees, claimEth."},{"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":"5 pools over 46 days."}],"score":91,"verdict":"caution"}