{"hook":"0x670002c7ec0340A0549E6ffFE72211Cb1b44c5D0","block":93298489,"bits":1488,"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":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":true},{"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":true},{"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":true},{"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":23562,"selectors":["0x11a0e421","0x14122ea3","0x2460c37c","0x264f9e36","0x32e1e109","0x365a86fc","0x39b37ab0","0x48cda3ec","0x51a44e8f","0x575e24b4","0x6901f768","0x6c2bbe7e","0x6e3f795a","0x743926b5","0x78625d66","0x82589038","0x85a70cfa","0x8c0735e0","0x91dd7346","0x9cbc5352","0x9f063efc","0x9f2b7cf3","0x9f3aa62b","0xa00ee274","0xa60a2778","0xaa5f7e26","0xac598a75","0xad04032e","0xb17acdcd","0xb47b2fb1","0xb5f33615","0xb79218cf","0xba0bba40","0xc1ea4f6d","0xc4e833ce","0xc68ad2c2","0xcdf02f73","0xd0c93a7c","0xd9283eb4","0xdc4c90d3","0xdcf8de93","0xe1b4af69","0xe2e6d6e0","0xe674b877","0xf8713c4e","0xf9998644"],"delegatecall":true,"selfdestruct":false,"create":false,"calls":11,"addresses":["0x07a9BbdcC3853d176048745Adb5db8f6C7E0619D","0xFFFD8963efd1FC6a506488495d951D5163961682"]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0x11a0e421","name":null},{"selector":"0x14122ea3","name":null},{"selector":"0x2460c37c","name":"bindHub(address)"},{"selector":"0x264f9e36","name":null},{"selector":"0x32e1e109","name":null},{"selector":"0x365a86fc","name":"hub()"},{"selector":"0x39b37ab0","name":"fee(uint256)"},{"selector":"0x48cda3ec","name":null},{"selector":"0x51a44e8f","name":"addCarry(uint256,uint256)"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x6901f768","name":"poolKey(uint256)"},{"selector":"0x6c2bbe7e","name":"afterRemoveLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0x6e3f795a","name":"safety()"},{"selector":"0x743926b5","name":"recentre(uint256)"},{"selector":"0x78625d66","name":"RELEASE_DURATION()"},{"selector":"0x82589038","name":"feePolicy()"},{"selector":"0x85a70cfa","name":"QUALIFY_DURATION()"},{"selector":"0x8c0735e0","name":null},{"selector":"0x91dd7346","name":"unlockCallback(bytes)"},{"selector":"0x9cbc5352","name":"bandState(uint256)"},{"selector":"0x9f063efc","name":"afterAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0x9f2b7cf3","name":null},{"selector":"0x9f3aa62b","name":null},{"selector":"0xa00ee274","name":"tickerOf(uint256)"},{"selector":"0xa60a2778","name":null},{"selector":"0xaa5f7e26","name":"compound(uint256)"},{"selector":"0xac598a75","name":"tickerKey(string)"},{"selector":"0xad04032e","name":null},{"selector":"0xb17acdcd","name":"collectFees(uint256)"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xb5f33615","name":null},{"selector":"0xb79218cf","name":null},{"selector":"0xba0bba40","name":"setup()"},{"selector":"0xc1ea4f6d","name":null},{"selector":"0xc4e833ce","name":"getHookPermissions()"},{"selector":"0xc68ad2c2","name":null},{"selector":"0xcdf02f73","name":"initializeProxy(address,bytes)"},{"selector":"0xd0c93a7c","name":"tickSpacing()"},{"selector":"0xd9283eb4","name":null},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xdcf8de93","name":null},{"selector":"0xe1b4af69","name":"afterDonate(address,(address,address,uint24,int24,address),uint256,uint256,bytes)"},{"selector":"0xe2e6d6e0","name":null},{"selector":"0xe674b877","name":null},{"selector":"0xf8713c4e","name":"usdgUnit()"},{"selector":"0xf9998644","name":null}],"history":{"pools":5,"firstTime":1790679750,"lastTime":1790679767},"pools":[{"id":"0xbba9bfe3b99b8c092d350ff2e6892a5e63c48af7df4dc7ea58b25204a545c914","key":{"currency0":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","currency1":"0xA1D2f4F0D42978A25f6Aec5Aefe059F02C68E6e3","fee":8388608,"tickSpacing":10,"hooks":"0x670002c7ec0340A0549E6ffFE72211Cb1b44c5D0"},"symbols":["USDG","xMEDS"],"state":{"sqrtP":"79228162514264337593543950336000000","tick":276324,"protocolFee":0,"lpFee":0,"liquidity":"3201395424372"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"1000","paid":"1000","got":"989693946895791","expected":"999687733753180","feePpm":0,"takePpm":9997},{"zeroForOne":false,"ok":false,"why":"thin","reason":"too little liquidity to measure"}],"roundTrip":{"ok":true,"lossPpm":34,"added":["-29843","-29748353757251373"],"removed":["29842","29748353757251372"]}},{"id":"0x3fc661ce72e327dc3d1ad8eb115884ffc9dea1b0f1c09a9a348615970b187af9","key":{"currency0":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","currency1":"0xd07cc97003a29dc5bbF0F923c4578A66D6dc0072","fee":8388608,"tickSpacing":10,"hooks":"0x670002c7ec0340A0549E6ffFE72211Cb1b44c5D0"},"symbols":["USDG","xROBOTS"],"state":{"sqrtP":"79228162514264337593543950336000000","tick":276324,"protocolFee":0,"lpFee":0,"liquidity":"3201440276592"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"1000","paid":"1000","got":"989693951182274","expected":"999687738126668","feePpm":0,"takePpm":9997},{"zeroForOne":false,"ok":false,"why":"thin","reason":"too little liquidity to measure"}],"roundTrip":{"ok":true,"lossPpm":34,"added":["-29843","-29748353757251373"],"removed":["29842","29748353757251372"]}}],"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":"It takes 1.00% 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":"caution","detail":"Its pools use a dynamic fee that the hook sets before every swap. It stands at 0% now and can change."},{"id":"05","title":"No one holds the switch","status":"caution","detail":"No owner() but it has collectFees, setup."},{"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":"5 pools over 20 days."}],"score":83,"verdict":"caution"}