{"hook":"0x1D79cbF0B67642a6350aff0E3c7D904E77E640cc","block":93329474,"bits":204,"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":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":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":18706,"selectors":["0x0f6b7f69","0x2142e7bc","0x23a978b4","0x271645b0","0x2c597de9","0x2d3b22ad","0x30d172d5","0x3bb4fc89","0x3f7da3a6","0x4355c1fc","0x4c4a3c25","0x575e24b4","0x5bb47808","0x61d027b3","0x6637e38c","0x705865b0","0x715018a6","0x750d1be9","0x79ba5097","0x8a5628c5","0x8da5cb5b","0x93f72b5f","0x95ccea67","0x98c9e4c5","0x991a22ef","0x99c8d556","0xa7bd3e9d","0xad31b5b5","0xb30f393a","0xb47b2fb1","0xbdc8ebe7","0xc45a0155","0xc4e833ce","0xc7691e3b","0xd07a3d04","0xd4a7dd5c","0xd62b022b","0xdc4c90d3","0xddb0b4db","0xe133bb87","0xe17fbade","0xe30c3978","0xe33a6274","0xf0f44260","0xf2fde38b","0xfccc2813","0xff57639d"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":33,"addresses":["0xfFfd8963EFd1fC6A506488495d951d5263988d25"]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":"0x843407b3b3B006336631F6846d72b38bCcbd7951","functions":[{"selector":"0x0f6b7f69","name":"setLiquidityThreshold(address,uint256)"},{"selector":"0x2142e7bc","name":"burnThreshold(address)"},{"selector":"0x23a978b4","name":"setBurnThreshold(address,uint256)"},{"selector":"0x271645b0","name":"pendingLiq(address,address)"},{"selector":"0x2c597de9","name":"MAX_TAX_BPS()"},{"selector":"0x2d3b22ad","name":"fairLaunchWindow()"},{"selector":"0x30d172d5","name":"dividendPool()"},{"selector":"0x3bb4fc89","name":"setBurnDustThreshold(address,uint256)"},{"selector":"0x3f7da3a6","name":"setDividendFlushThreshold(address,uint256)"},{"selector":"0x4355c1fc","name":"setTokenTicks(address,int24,int24)"},{"selector":"0x4c4a3c25","name":"stateView()"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x5bb47808","name":"setFactory(address)"},{"selector":"0x61d027b3","name":"treasury()"},{"selector":"0x6637e38c","name":"BPS_DENOM()"},{"selector":"0x705865b0","name":"setFairLaunchWindow(uint256)"},{"selector":"0x715018a6","name":"renounceOwnership()"},{"selector":"0x750d1be9","name":"liquidityThreshold(address)"},{"selector":"0x79ba5097","name":"acceptOwnership()"},{"selector":"0x8a5628c5","name":"PLATFORM_MIN_BPS()"},{"selector":"0x8da5cb5b","name":"owner()"},{"selector":"0x93f72b5f","name":"tickLowerOverride(address)"},{"selector":"0x95ccea67","name":"emergencyWithdraw(address,uint256)"},{"selector":"0x98c9e4c5","name":"fairLaunchEnd(address)"},{"selector":"0x991a22ef","name":"setTokenTax(address,uint16,uint16)"},{"selector":"0x99c8d556","name":"tax()"},{"selector":"0xa7bd3e9d","name":"setDividendPool(address)"},{"selector":"0xad31b5b5","name":"pendingDiv(address,address)"},{"selector":"0xb30f393a","name":"MAX_FAIR_LAUNCH_WINDOW()"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xbdc8ebe7","name":"taxParams(address)"},{"selector":"0xc45a0155","name":null},{"selector":"0xc4e833ce","name":"getHookPermissions()"},{"selector":"0xc7691e3b","name":"pendingBurn(address,address)"},{"selector":"0xd07a3d04","name":"maxBuyQuoteByToken(address)"},{"selector":"0xd4a7dd5c","name":"setMaxBuyQuote(address,uint256)"},{"selector":"0xd62b022b","name":"burnDustThresholdByToken(address)"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xddb0b4db","name":"snipeWindowEnd(address)"},{"selector":"0xe133bb87","name":"setTokenAllocations(address,uint16,uint16,uint16,uint16)"},{"selector":"0xe17fbade","name":"quoteTokenOf(address)"},{"selector":"0xe30c3978","name":"pendingOwner()"},{"selector":"0xe33a6274","name":"tickUpperOverride(address)"},{"selector":"0xf0f44260","name":"setTreasury(address)"},{"selector":"0xf2fde38b","name":"transferOwnership(address)"},{"selector":"0xfccc2813","name":"BURN_ADDRESS()"},{"selector":"0xff57639d","name":"dividendFlushThreshold(address)"}],"history":{"pools":5,"firstTime":1791038858,"lastTime":1791136658},"pools":[{"id":"0xb346a0e8488441d11ad15bdd7482fba9ef6894e654870e0b07cb85f6174f8270","key":{"currency0":"0x379a123feFaa5304aa785ABEFf820f89Fa0b7777","currency1":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","fee":0,"tickSpacing":200,"hooks":"0x1D79cbF0B67642a6350aff0E3c7D904E77E640cc"},"symbols":["TESTDG","USDG"],"state":{"sqrtP":"132527058353808836480","tick":-404197,"protocolFee":0,"lpFee":0,"liquidity":"1672427676917970614"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"44682522945795213451271","paid":"44682522945795213451271","got":"123766","expected":"125016","feePpm":0,"takePpm":9999},{"zeroForOne":false,"ok":true,"amountIn":"1398757","paid":"1398757","got":"494666812994870754808271","expected":"499660744832127188796509","feePpm":0,"takePpm":9995}],"roundTrip":{"ok":true,"lossPpm":121,"added":["-3902990930096398001145","-8317"],"removed":["3902990930096398001144","8316"]}},{"id":"0x4154c665945a24bdcf92f4a22d0af9a5fde02a3938bedd224ae8ece107f32ece","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0x4cE3CdE604EC50FD5e5dB3Dd7E4C3E6B829D7777","fee":0,"tickSpacing":200,"hooks":"0x1D79cbF0B67642a6350aff0E3c7D904E77E640cc"},"symbols":["ETH","TEST3"],"state":{"sqrtP":"2450096201160652686641348771318966","tick":206796,"protocolFee":0,"lpFee":0,"liquidity":"32331032370375572458814"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"522740349068868","paid":"522740349068868","got":"494667527452637230109623","expected":"499661672071767788388180","feePpm":0,"takePpm":9996},{"zeroForOne":false,"ok":true,"amountIn":"44248545813219502387542","paid":"44248545813219502387542","got":"45804470906441","expected":"46267142329738","feePpm":0,"takePpm":10000}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-3107667784201","-3903164521058123855359"],"removed":["3107667784200","3903164521058123855358"]}}],"openCallbacks":[],"checks":[{"id":"01","title":"Permissions that touch your money","status":"caution","detail":"The address enables 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 1% 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 0x843407b3b3B006336631F6846d72b38bCcbd7951. Owner-style functions: setLiquidityThreshold, burnThreshold, setBurnThreshold, setBurnDustThreshold, setDividendFlushThreshold, setTokenTicks."},{"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 16 days."}],"score":88,"verdict":"caution"}