{"hook":"0xaa49ADaDD33c5E953b645567AFb10CBbba63afC4","block":93296336,"bits":12228,"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":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":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":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":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":24047,"selectors":["0xdddd48a0","0xe1758bd8","0xe1b4af69","0xf04e283e","0xf2fde38b","0xf9c90b06","0xfee81cf4","0xc23f001f","0xc4e833ce","0xd7b96d4e","0xd9caed12","0xdc4c90d3","0xdc86496c","0xdc98354e","0xabbb4695","0xae463a0b","0xb35ea521","0xb3a4f97b","0xb47b2fb1","0xb6a8b0fa","0xbfd746d6","0x9ab2f6b9","0x9f063efc","0xa0fd3f7e","0xa5a927a6","0xa5cf8840","0xa73802eb","0xaa9d881c","0x6f799441","0x6fe7e6eb","0x715018a6","0x72a16a98","0x7381527f","0x791b98bc","0x8da5cb5b","0x575e24b4","0x59f225d2","0x5a6c72d0","0x5b633d27","0x665a17c5","0x68400963","0x6c2bbe7e","0x259982e5","0x31f7d964","0x360507b6","0x3a0d5443","0x4f413237","0x54d1f13d","0x575c1246","0x0520d445","0x09276ea4","0x176a5781","0x19b1a6cd","0x21d0ee70","0x253d25e6","0x25692962"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":21,"addresses":["0xfF53611968f1E5Ca45CFca7918447e7F5776F6D4"]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":"0xB8A70b4d1547bf6193bd67A73F4F98ea9FD0A973","functions":[{"selector":"0xdddd48a0","name":"setPoolMaxAbsTickDelta(bytes32,int24)"},{"selector":"0xe1758bd8","name":"nativeToken()"},{"selector":"0xe1b4af69","name":"afterDonate(address,(address,address,uint24,int24,address),uint256,uint256,bytes)"},{"selector":"0xf04e283e","name":"completeOwnershipHandover(address)"},{"selector":"0xf2fde38b","name":"transferOwnership(address)"},{"selector":"0xf9c90b06","name":"ammBeneficiary()"},{"selector":"0xfee81cf4","name":"ownershipHandoverExpiresAt(address)"},{"selector":"0xc23f001f","name":"balances(address,address)"},{"selector":"0xc4e833ce","name":"getHookPermissions()"},{"selector":"0xd7b96d4e","name":"locker()"},{"selector":"0xd9caed12","name":"withdraw(address,address,uint256)"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xdc86496c","name":"stateById(bytes32)"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xabbb4695","name":"setNotifier(address)"},{"selector":"0xae463a0b","name":"setFee(bytes32,uint24)"},{"selector":"0xb35ea521","name":"defaultMaxAbsTickDelta()"},{"selector":"0xb3a4f97b","name":"getCollectionFee(address)"},{"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":"0xbfd746d6","name":"defaultObservationCardinality()"},{"selector":"0x9ab2f6b9","name":"pendingDonations(bytes32)"},{"selector":"0x9f063efc","name":"afterAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0xa0fd3f7e","name":"poolParams(bytes32)"},{"selector":"0xa5a927a6","name":"setDefaultObservationCardinality(uint16)"},{"selector":"0xa5cf8840","name":"observationsById(bytes32,uint256)"},{"selector":"0xa73802eb","name":"setDefaultMaxAbsTickDelta(int24)"},{"selector":"0xaa9d881c","name":"feeOverrides(address)"},{"selector":"0x6f799441","name":"deregisterCollection(address)"},{"selector":"0x6fe7e6eb","name":"afterInitialize(address,(address,address,uint24,int24,address),uint160,int24)"},{"selector":"0x715018a6","name":"renounceOwnership()"},{"selector":"0x72a16a98","name":"depositFees(address,uint256,uint256)"},{"selector":"0x7381527f","name":"POOL_TICK_SPACING()"},{"selector":"0x791b98bc","name":"positionManager()"},{"selector":"0x8da5cb5b","name":"owner()"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x59f225d2","name":"registerCollection(address,address)"},{"selector":"0x5a6c72d0","name":"defaultFee()"},{"selector":"0x5b633d27","name":"initializeCollection(address,uint256,uint256,uint256,uint160,address)"},{"selector":"0x665a17c5","name":"ammFee()"},{"selector":"0x68400963","name":"getFee(bytes32,address)"},{"selector":"0x6c2bbe7e","name":"afterRemoveLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0x259982e5","name":"beforeAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),bytes)"},{"selector":"0x31f7d964","name":"NATIVE_TOKEN()"},{"selector":"0x360507b6","name":"removeFeeExemption(address)"},{"selector":"0x3a0d5443","name":"setDefaultFee(uint24)"},{"selector":"0x4f413237","name":"increaseObservationCardinalityNext(uint16,bytes32)"},{"selector":"0x54d1f13d","name":"cancelOwnershipHandover()"},{"selector":"0x575c1246","name":"setAmmFee(uint24)"},{"selector":"0x0520d445","name":"observe(uint32[],bytes32)"},{"selector":"0x09276ea4","name":"notifier()"},{"selector":"0x176a5781","name":"setFeeExemption(address,uint24)"},{"selector":"0x19b1a6cd","name":"getCollectionPoolKey(address)"},{"selector":"0x21d0ee70","name":"beforeRemoveLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),bytes)"},{"selector":"0x253d25e6","name":"setAmmBeneficiary(address)"},{"selector":"0x25692962","name":"requestOwnershipHandover()"}],"history":{"pools":4,"firstTime":1787236991,"lastTime":1788943920},"pools":[{"id":"0xcf08c985e82f49de2440073626d8a69c75bf29f4086d7c678a6fbbda60161efb","key":{"currency0":"0x00000000043C1117DAFA3A3D0C7148Eb48B30130","currency1":"0x188B1eDa9982384a9E3Acc7A729415825618900B","fee":8388608,"tickSpacing":60,"hooks":"0xaa49ADaDD33c5E953b645567AFb10CBbba63afC4"},"symbols":["flETH","PYO"],"state":{"sqrtP":"1056005701790787124809736327234","tick":51800,"protocolFee":0,"lpFee":0,"liquidity":"5612486080160912078"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"110221846771780","paid":"110221846771780","got":"19380614485810057","expected":"19576154197156310","feePpm":0,"takePpm":9989},{"zeroForOne":false,"ok":true,"amountIn":"36567076857974284","paid":"36567076857974284","got":"203678739485078","expected":"205733325519365","feePpm":0,"takePpm":9987}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-1324174025489","-228670151700742"],"removed":["1324174025488","228670151700741"]}},{"id":"0x00b3c41184fbd685b23efff9f72c4b2f9a61cf088ee165da8f2f8ee7ff3dd756","key":{"currency0":"0x00000000043C1117DAFA3A3D0C7148Eb48B30130","currency1":"0x370e49749B9Ff90004F3186aA7135487aCC2A8fC","fee":8388608,"tickSpacing":60,"hooks":"0xaa49ADaDD33c5E953b645567AFb10CBbba63afC4"},"symbols":["flETH","GOBX"],"state":{"sqrtP":"4801733076101585923246035879661","tick":82092,"protocolFee":0,"lpFee":0,"liquidity":"2778848682458258647"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"6943363335824","paid":"6943363335824","got":"25245311025212704","expected":"25500047598997804","feePpm":0,"takePpm":9990},{"zeroForOne":false,"ok":true,"amountIn":"84207996302064880","paid":"84207996302064880","got":"22685088372427","expected":"22913919308355","feePpm":0,"takePpm":9987}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-146143634680","-507614049701953"],"removed":["146143634679","507614049701952"]}}],"openCallbacks":[],"checks":[{"id":"01","title":"Permissions that touch your money","status":"caution","detail":"The address enables before remove liquidity, 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 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":"Owned by 0xB8A70b4d1547bf6193bd67A73F4F98ea9FD0A973. Owner-style functions: setPoolMaxAbsTickDelta, transferOwnership, withdraw, setNotifier, setFee, setDefaultObservationCardinality."},{"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":"4 pools over 60 days."}],"score":85,"verdict":"caution"}