{"hook":"0x2AC29f18B22a12917D4653406B0D2Fe7B592A888","block":93362017,"bits":10376,"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":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":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":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":19386,"selectors":["0xf2fde38b","0xf45346dc","0xf777ce22","0xe527edab","0xeced5526","0xf1a8151c","0xe1b4af69","0xe1cd908e","0xe30c3978","0xdc98354e","0xdf034cd0","0xdf8c4cc1","0xcd272714","0xcdc18424","0xdc4c90d3","0xb8902ae3","0xc0d25871","0xc4e833ce","0x9f063efc","0xb47b2fb1","0xb6a8b0fa","0x8da5cb5b","0x9d54f419","0x7f5a7c7b","0x8aece7ac","0x8cde38ab","0x6fe7e6eb","0x715018a6","0x79ba5097","0x6672badb","0x69328dec","0x6c2bbe7e","0x490c98f5","0x575e24b4","0x32cc3a32","0x3f7d1179","0x48d8b0ba","0x28c32069","0x2c2efcac","0x2d910fb4","0x1ce4c78b","0x21d0ee70","0x259982e5","0x01ffc9a7","0x0d174c24"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":8,"addresses":[]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":"0xCA63E46e13a2A1575132e77cb106c670D41b4a34","functions":[{"selector":"0xf2fde38b","name":"transferOwnership(address)"},{"selector":"0xf45346dc","name":"deposit(address,uint256,address)"},{"selector":"0xf777ce22","name":"aggregatorHookVersion()"},{"selector":"0xe527edab","name":"swapExactInDirect(address,address,uint256,address)"},{"selector":"0xeced5526","name":"SCALE()"},{"selector":"0xf1a8151c","name":"pairConfig(bytes32)"},{"selector":"0xe1b4af69","name":"afterDonate(address,(address,address,uint24,int24,address),uint256,uint256,bytes)"},{"selector":"0xe1cd908e","name":"updateBooks((bytes32,uint40,(uint40,uint8,uint32,uint256,uint256),(uint40,uint8,uint32,uint256,uint256))[],uint32)"},{"selector":"0xe30c3978","name":"pendingOwner()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xdf034cd0","name":"updater()"},{"selector":"0xdf8c4cc1","name":"swapExactOutDirect(address,address,uint256,address)"},{"selector":"0xcd272714","name":"quote(bool,int256,bytes32)"},{"selector":"0xcdc18424","name":"withdrawer()"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xb8902ae3","name":"NUM_TICKS()"},{"selector":"0xc0d25871","name":"quoteDirect(bytes32,bool,int256)"},{"selector":"0xc4e833ce","name":"getHookPermissions()"},{"selector":"0x9f063efc","name":"afterAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"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":"0x8da5cb5b","name":"owner()"},{"selector":"0x9d54f419","name":"setUpdater(address)"},{"selector":"0x7f5a7c7b","name":"hook()"},{"selector":"0x8aece7ac","name":"getBookSideRaw(bytes32,bool)"},{"selector":"0x8cde38ab","name":"setPairConfig((address,address,uint24,int24,address),uint128,uint88,uint24,bool)"},{"selector":"0x6fe7e6eb","name":"afterInitialize(address,(address,address,uint24,int24,address),uint160,int24)"},{"selector":"0x715018a6","name":"renounceOwnership()"},{"selector":"0x79ba5097","name":"acceptOwnership()"},{"selector":"0x6672badb","name":"PIPS()"},{"selector":"0x69328dec","name":"withdraw(address,uint256,address)"},{"selector":"0x6c2bbe7e","name":"afterRemoveLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0x490c98f5","name":"tokenJar()"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x32cc3a32","name":"getBookSide(bytes32,bool)"},{"selector":"0x3f7d1179","name":"pollTokenJar()"},{"selector":"0x48d8b0ba","name":"getReserves((address,address,uint24,int24,address))"},{"selector":"0x28c32069","name":"getEffectiveLiquidity((address,address,uint24,int24,address))"},{"selector":"0x2c2efcac","name":"protocolFeeFlags()"},{"selector":"0x2d910fb4","name":"pseudoTotalValueLocked(bytes32)"},{"selector":"0x1ce4c78b","name":"protocolFeeMultiplier()"},{"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":"0x01ffc9a7","name":"supportsInterface(bytes4)"},{"selector":"0x0d174c24","name":"setWithdrawer(address)"}],"history":{"pools":5,"firstTime":1786068867,"lastTime":1792142719},"pools":[{"id":"0x30fbf71a8a27e9d30549132fbeb32aeef7a9b8372e751478654e7deb9ad2e3d2","key":{"currency0":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","currency1":"0xec262a75e413fAfD0dF80480274532C79D42da09","fee":0,"tickSpacing":1,"hooks":"0x2AC29f18B22a12917D4653406B0D2Fe7B592A888"},"symbols":["USDG","MSTR"],"state":{"sqrtP":"79228162514264337593543950336","tick":0,"protocolFee":163880,"lpFee":0,"liquidity":"0"},"swaps":[{"zeroForOne":true,"ok":false,"why":"thin","reason":"no liquidity at the current price"},{"zeroForOne":false,"ok":false,"why":"thin","reason":"no liquidity at the current price"}],"roundTrip":{"ok":false,"stage":"add","reason":"LiquidityNotAllowed"}}],"openCallbacks":[],"checks":[{"id":"01","title":"Permissions that touch your money","status":"caution","detail":"The address enables before 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":"n/a","detail":"No pool with liquidity to swap through yet."},{"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 0%, written in the pool key."},{"id":"05","title":"No one holds the switch","status":"caution","detail":"Owned by 0xCA63E46e13a2A1575132e77cb106c670D41b4a34. Owner-style functions: transferOwnership, updateBooks, updater, withdrawer, setUpdater, setPairConfig."},{"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 74 days."}],"score":79,"verdict":"caution"}