{"hook":"0x89c9FB50d1f03192230FFB1c279BB6E7d3Fe6aCc","block":92952451,"bits":10956,"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":true},{"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":20904,"selectors":["0x01c19d8a","0x03fd2a45","0x0885f732","0x21d0ee70","0x259982e5","0x330140f0","0x45e5a1ad","0x46704139","0x4d78d40b","0x4f270cd9","0x50907d62","0x575e24b4","0x6c2bbe7e","0x6fe7e6eb","0x7b103999","0x957540b4","0x9f063efc","0xa032b9c5","0xb197ba73","0xb47b2fb1","0xb6a8b0fa","0xba835629","0xbdffc074","0xc6bbd5a7","0xcb0152a2","0xdac4a311","0xdc4c90d3","0xdc98354e","0xe1b4af69"],"delegatecall":true,"selfdestruct":false,"create":false,"calls":6,"addresses":[]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0x01c19d8a","name":"poolRoute(bytes32)"},{"selector":"0x03fd2a45","name":"DEAD()"},{"selector":"0x0885f732","name":"poolConfig(bytes32)"},{"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":"0x330140f0","name":"feeOnlyFrom(bytes32)"},{"selector":"0x45e5a1ad","name":"initializePool((address,address,uint24,int24,address),(address,address,address,address,address,uint24,(uint24,uint24,uint16),uint32,uint32,uint8,bool,bytes32),bytes,bytes,uint160)"},{"selector":"0x46704139","name":"curatedRouter()"},{"selector":"0x4d78d40b","name":"releaseId()"},{"selector":"0x4f270cd9","name":"takeReceipt(bytes32)"},{"selector":"0x50907d62","name":"curatedRouterCodeHash()"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"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":"0x7b103999","name":"registry()"},{"selector":"0x957540b4","name":"bindingPool()"},{"selector":"0x9f063efc","name":"afterAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0xa032b9c5","name":"routerCodeHash()"},{"selector":"0xb197ba73","name":"policyHash(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":"0xba835629","name":"quoteLeg((address,address,uint24,int24,address),(bool,int256,uint160),int128,int128)"},{"selector":"0xbdffc074","name":"knownPool(bytes32)"},{"selector":"0xc6bbd5a7","name":"quoter()"},{"selector":"0xcb0152a2","name":"PERMISSION_FLAGS()"},{"selector":"0xdac4a311","name":"quoterCodeHash()"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xe1b4af69","name":"afterDonate(address,(address,address,uint24,int24,address),uint256,uint256,bytes)"}],"history":{"pools":35,"firstTime":1791384168,"lastTime":1792422995},"pools":[{"id":"0xfd1da8e8b40621664c21d0fc76192eeb6d25bfe225ffe98dd51e23bb3ea839f5","key":{"currency0":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","currency1":"0x7ba6B253c656B280EE27807797A0C6c5Ae1D5B9F","fee":8388608,"tickSpacing":60,"hooks":"0x89c9FB50d1f03192230FFB1c279BB6E7d3Fe6aCc"},"symbols":["USDG","OTEST"],"state":{"sqrtP":"52742327057683024488376730603905889039","tick":406347,"protocolFee":0,"lpFee":1500,"liquidity":"6882229190196177"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"3538","paid":"3538","got":"1550088120307365625182","expected":"1564702420952228450461","feePpm":1500,"takePpm":9340},{"zeroForOne":false,"ok":true,"amountIn":"1870554235608981236271","paid":"1870554235608981236271","got":"4172","expected":"4212","feePpm":1500,"takePpm":9497}],"roundTrip":{"ok":true,"lossPpm":21277,"added":["-47","-20556685655345246322"],"removed":["46","20556685655345246321"]}},{"id":"0xf6d3b26860823af00161d691245c6c1fb3a674b68763bdb714825274581df253","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0x72bE1277E198D0C476869253Cb4E62807e14533c","fee":8388608,"tickSpacing":200,"hooks":"0x89c9FB50d1f03192230FFB1c279BB6E7d3Fe6aCc"},"symbols":["ETH","RAETO"],"state":{"sqrtP":"104242023157181636104132747312470","tick":143649,"protocolFee":0,"lpFee":1500,"liquidity":"7939234095133339625366"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"3017069844181538","paid":"3017069844181538","got":"5211590033383561511578","expected":"5212465118936622435263","feePpm":1500,"takePpm":168},{"zeroForOne":false,"ok":true,"amountIn":"5222901794839512483594","paid":"5222901794839512483594","got":"3011546565403465","expected":"3011040977207395","feePpm":1500,"takePpm":-167}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-22209134251940","-33399352683802057681"],"removed":["22209134251939","33399352683802057680"]}}],"openCallbacks":[],"checks":[{"id":"01","title":"Permissions that touch your money","status":"caution","detail":"The address enables before remove liquidity, 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 0.95% on top of the pool fee."},{"id":"03","title":"LPs can get out","status":"caution","detail":"Taking liquidity straight back out lost 2.13%."},{"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 0.15% 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":"caution","detail":"The bytecode contains DELEGATECALL."},{"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":"35 pools over 12 days."}],"score":78,"verdict":"caution"}