{"hook":"0x1fE22d6ABFd40632D29438DEFA720013cE8b2044","block":93329928,"bits":8260,"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":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":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":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":21728,"selectors":["0x05505982","0x137b474e","0x16cab63f","0x21d0ee70","0x259982e5","0x2c01ded8","0x2fe35a4e","0x359b4f30","0x397faf87","0x3df3d3b8","0x4aef4070","0x507e08bf","0x575e24b4","0x5bb47808","0x5c4ad2b6","0x64df049e","0x66de3790","0x6c2bbe7e","0x6dd36db1","0x6fe7e6eb","0x715018a6","0x72cf5366","0x75619ab5","0x79ba5097","0x7af559b5","0x7c1632ce","0x8239a85a","0x84277bcc","0x89a69bd8","0x8da5cb5b","0x91dd7346","0x92dc94be","0x99fd9ce0","0x9e6c4e7d","0x9f063efc","0x9f3b024c","0xa7fd87ca","0xac1ff207","0xad091230","0xaf127937","0xaf6df296","0xb47b2fb1","0xb5af6caa","0xb6a8b0fa","0xbfe10928","0xbfe7af83","0xc45a0155","0xc4b7de97","0xc4e833ce","0xc8eaa792","0xcab1ef67","0xd1ec4cf6","0xd7a41f92","0xdc4c90d3","0xdc98354e","0xe1b4af69","0xe30c3978","0xe521cb92","0xe6208826","0xea26abcf","0xf046057b","0xf2fde38b","0xf5d6b737","0xfc6bf3d0","0xff68daec"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":16,"addresses":[]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":"0x0883d1c3a7694dDaaF560B55753b81325C477E87","functions":[{"selector":"0x05505982","name":"bandCount(bytes32)"},{"selector":"0x137b474e","name":"exemptFromSnipeTax(address,address)"},{"selector":"0x16cab63f","name":"pairGuard(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":"0x2c01ded8","name":"MAX_BANDS_PER_POOL()"},{"selector":"0x2fe35a4e","name":"guardTicksPerHour()"},{"selector":"0x359b4f30","name":"pendingFees(bytes32,address)"},{"selector":"0x397faf87","name":"seed(bytes32,(int24,int24,uint128)[])"},{"selector":"0x3df3d3b8","name":"setGuardMaxTicks(uint32)"},{"selector":"0x4aef4070","name":"sweep(bytes32,address)"},{"selector":"0x507e08bf","name":"commitGuard(bytes32)"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x5bb47808","name":"setFactory(address)"},{"selector":"0x5c4ad2b6","name":"pendingLp(bytes32,address)"},{"selector":"0x64df049e","name":"protocolFeeRecipient()"},{"selector":"0x66de3790","name":"setLpOperator(address)"},{"selector":"0x6c2bbe7e","name":"afterRemoveLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0x6dd36db1","name":"launchedAtOf(address)"},{"selector":"0x6fe7e6eb","name":"afterInitialize(address,(address,address,uint24,int24,address),uint160,int24)"},{"selector":"0x715018a6","name":"renounceOwnership()"},{"selector":"0x72cf5366","name":"lpOperator()"},{"selector":"0x75619ab5","name":"setDistributor(address)"},{"selector":"0x79ba5097","name":"acceptOwnership()"},{"selector":"0x7af559b5","name":"guardSqrtPriceX96(bytes32)"},{"selector":"0x7c1632ce","name":"LP_ADD_COOLDOWN()"},{"selector":"0x8239a85a","name":"bands(bytes32,uint256)"},{"selector":"0x84277bcc","name":"lpRouted(bytes32,address)"},{"selector":"0x89a69bd8","name":"currentFeePolicy()"},{"selector":"0x8da5cb5b","name":"owner()"},{"selector":"0x91dd7346","name":"unlockCallback(bytes)"},{"selector":"0x92dc94be","name":"addLiquidity(bytes32,address)"},{"selector":"0x99fd9ce0","name":"currentSnipeTaxBpsToward(bytes32,address,address)"},{"selector":"0x9e6c4e7d","name":"guardMaxTicks()"},{"selector":"0x9f063efc","name":"afterAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0x9f3b024c","name":"setMinLpAdd(uint256)"},{"selector":"0xa7fd87ca","name":"snipeTaxExempt(address,address)"},{"selector":"0xac1ff207","name":"openingTick(bytes32)"},{"selector":"0xad091230","name":"launches(bytes32)"},{"selector":"0xaf127937","name":"registerPool((address,address,uint24,int24,address),address,uint16,(address,uint16))"},{"selector":"0xaf6df296","name":"minLpAdd()"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xb5af6caa","name":"poolKeyOf(bytes32)"},{"selector":"0xb6a8b0fa","name":"beforeDonate(address,(address,address,uint24,int24,address),uint256,uint256,bytes)"},{"selector":"0xbfe10928","name":"distributor()"},{"selector":"0xbfe7af83","name":"setHookFeeBps(uint256)"},{"selector":"0xc45a0155","name":null},{"selector":"0xc4b7de97","name":"feeEscrow()"},{"selector":"0xc4e833ce","name":"getHookPermissions()"},{"selector":"0xc8eaa792","name":"pendingCreatorTax(bytes32,address)"},{"selector":"0xcab1ef67","name":"quoteOf(address)"},{"selector":"0xd1ec4cf6","name":"seeded(bytes32)"},{"selector":"0xd7a41f92","name":"currentSnipeTaxBps(bytes32,address)"},{"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)"},{"selector":"0xe30c3978","name":"pendingOwner()"},{"selector":"0xe521cb92","name":"setProtocolFeeRecipient(address)"},{"selector":"0xe6208826","name":"setGuardTicksPerHour(uint32)"},{"selector":"0xea26abcf","name":"hookFeeBps()"},{"selector":"0xf046057b","name":"SEED_SALT()"},{"selector":"0xf2fde38b","name":"transferOwnership(address)"},{"selector":"0xf5d6b737","name":"compound(bytes32,uint256)"},{"selector":"0xfc6bf3d0","name":"lastLpAddAt(bytes32,address)"},{"selector":"0xff68daec","name":"pendingSnipeTax(bytes32,address)"}],"history":{"pools":4,"firstTime":1789776736,"lastTime":1789789951},"pools":[{"id":"0x5e52893cd3c079d77b128cca51ba205c4acca74c04d50c60af4eedbeb189a0eb","key":{"currency0":"0x2c2504e2a7Bf16874C5dB3561C9F302044A318f7","currency1":"0xaef39d47eE8330bbb299aB377b1123d69151144c","fee":0,"tickSpacing":200,"hooks":"0x1fE22d6ABFd40632D29438DEFA720013cE8b2044"},"symbols":["LP","USER9229939383"],"state":{"sqrtP":"2119002241798671163603528641","tick":-72432,"protocolFee":0,"lpFee":0,"liquidity":"6159587198175517294074650"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"115151547726441403442882","paid":"115151547726441403442882","got":"79859775641537145527","expected":"82329665609832108789","feePpm":0,"takePpm":30000},{"zeroForOne":false,"ok":true,"amountIn":"64607673796454777707","paid":"64607673796454777707","got":"87575351189997427891973","expected":"90283867206182915352548","feePpm":0,"takePpm":30000}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-715620103052338267338","-621099839579311150"],"removed":["715620103052338267337","621099839579311149"]}},{"id":"0x58b813875656ee87b1399cc0a826ead259da2f4b6ea27b82cb90d4943ae636a1","key":{"currency0":"0x7dAa9Cc21C56005f60b4F1137aEDb25DA4cec458","currency1":"0xaef39d47eE8330bbb299aB377b1123d69151144c","fee":0,"tickSpacing":200,"hooks":"0x1fE22d6ABFd40632D29438DEFA720013cE8b2044"},"symbols":["TESTY","USER9229939383"],"state":{"sqrtP":"496587213196531607153251354","tick":-101452,"protocolFee":0,"lpFee":0,"liquidity":"6159587198175517294074650"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"491366634690907627230402","paid":"491366634690907627230402","got":"19100980554955233243","expected":"19293919752480033578","feePpm":0,"takePpm":10000},{"zeroForOne":false,"ok":true,"amountIn":"19303566712356273595","paid":"19303566712356273595","got":"486209863412292404738478","expected":"491121074153830711857048","feePpm":0,"takePpm":10000}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-3150146696309414345858","-141785430757579477"],"removed":["3150146696309414345857","141785430757579476"]}}],"openCallbacks":[],"checks":[{"id":"01","title":"Permissions that touch your money","status":"caution","detail":"The address enables 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":"caution","detail":"It takes 3% of each swap 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":"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 0x0883d1c3a7694dDaaF560B55753b81325C477E87. Owner-style functions: setGuardMaxTicks, sweep, setFactory, setLpOperator, setDistributor, setMinLpAdd."},{"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 31 days."}],"score":75,"verdict":"caution"}