{"hook":"0xC059b0e5F2adBfDe4fB6B12D20078C7C1Ca9a044","block":93328011,"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":13934,"selectors":["0x04f618cb","0x06bfa938","0x0f04ba67","0x1246dbf5","0x1871e243","0x1e592502","0x2142e7bc","0x21d0ee70","0x23cbe1f3","0x249d39e9","0x259982e5","0x264e97e0","0x44fb97f7","0x4db15e74","0x575e24b4","0x5eb53f37","0x6c2bbe7e","0x6d66f1c0","0x6e7ffd4b","0x6fcba377","0x6fe7e6eb","0x6ff57b08","0x71013c10","0x715018a6","0x7381527f","0x76e580d9","0x77d2300e","0x7a1f6755","0x7cf90dd3","0x87eb0f19","0x8da5cb5b","0x91dd7346","0x991cf0e2","0x9f063efc","0xb1a25c94","0xb3b94502","0xb47b2fb1","0xb5217bb4","0xb6a8b0fa","0xbe2cc454","0xc64f5351","0xc92536ec","0xd21cacdf","0xd90fca75","0xda21b60c","0xdc4c90d3","0xdc98354e","0xdd1b9c4a","0xde0cebe9","0xe1b4af69","0xe25f919d","0xeb13554f","0xec13cd58","0xf2fde38b","0xfa48f032","0xfccc2813","0xfeb570b4"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":11,"addresses":["0xfFfD8963eFD1FC6A506488495D951d5263988d26","0xfFfd8963EFd1fC6A506488495d951d5263988d25"]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":"0x1531901509d9f737Dcf0A51f4DFFc43be523349F","functions":[{"selector":"0x04f618cb","name":"bindReferrer(address)"},{"selector":"0x06bfa938","name":"getPoolInfo(address)"},{"selector":"0x0f04ba67","name":"isFactory(address)"},{"selector":"0x1246dbf5","name":"hasPool(address)"},{"selector":"0x1871e243","name":"setPlatformFeeRecipient(address)"},{"selector":"0x1e592502","name":"referrerShareBps()"},{"selector":"0x2142e7bc","name":"burnThreshold(address)"},{"selector":"0x21d0ee70","name":"beforeRemoveLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),bytes)"},{"selector":"0x23cbe1f3","name":"sellFeeBps()"},{"selector":"0x249d39e9","name":"BPS()"},{"selector":"0x259982e5","name":"beforeAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),bytes)"},{"selector":"0x264e97e0","name":"isTrustedRouter(address)"},{"selector":"0x44fb97f7","name":"registerPool((address,address,uint24,int24,address),address,address,uint256,uint256,bool,uint64,address,uint256)"},{"selector":"0x4db15e74","name":"pendingFees(address,address)"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x5eb53f37","name":"burnVaultBalance(address)"},{"selector":"0x6c2bbe7e","name":"afterRemoveLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0x6d66f1c0","name":"totalBurnedPaired(address)"},{"selector":"0x6e7ffd4b","name":"getPoolKey(address)"},{"selector":"0x6fcba377","name":"setFees(uint256,uint256,uint256,uint256)"},{"selector":"0x6fe7e6eb","name":"afterInitialize(address,(address,address,uint24,int24,address),uint160,int24)"},{"selector":"0x6ff57b08","name":"snipeWindowSeconds()"},{"selector":"0x71013c10","name":"setFactory(address,bool)"},{"selector":"0x715018a6","name":"renounceOwnership()"},{"selector":"0x7381527f","name":"POOL_TICK_SPACING()"},{"selector":"0x76e580d9","name":"claimPendingFees(address,address)"},{"selector":"0x77d2300e","name":"buyFeeBps()"},{"selector":"0x7a1f6755","name":"gasFeeRecipient()"},{"selector":"0x7cf90dd3","name":"maxBurnImpactBps()"},{"selector":"0x87eb0f19","name":"bindReferrerFor(address,address)"},{"selector":"0x8da5cb5b","name":"owner()"},{"selector":"0x91dd7346","name":"unlockCallback(bytes)"},{"selector":"0x991cf0e2","name":"snipeTaxTokens(address)"},{"selector":"0x9f063efc","name":"afterAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0xb1a25c94","name":"creatorShareBps()"},{"selector":"0xb3b94502","name":"autoBurnBps(address)"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xb5217bb4","name":"pools(bytes32)"},{"selector":"0xb6a8b0fa","name":"beforeDonate(address,(address,address,uint24,int24,address),uint256,uint256,bytes)"},{"selector":"0xbe2cc454","name":"isSniper(bytes32,address)"},{"selector":"0xc64f5351","name":"setTrustedRouter(address,bool)"},{"selector":"0xc92536ec","name":"snipeSellTaxBps()"},{"selector":"0xd21cacdf","name":"referrerOf(address)"},{"selector":"0xd90fca75","name":"setMaxBurnImpactBps(uint256)"},{"selector":"0xda21b60c","name":"executeBurn(address)"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xdd1b9c4a","name":"POOL_FEE()"},{"selector":"0xde0cebe9","name":"setSnipeProtection(uint256,uint256)"},{"selector":"0xe1b4af69","name":"afterDonate(address,(address,address,uint24,int24,address),uint256,uint256,bytes)"},{"selector":"0xe25f919d","name":"totalBurnedTokens(address)"},{"selector":"0xeb13554f","name":"platformFeeRecipient()"},{"selector":"0xec13cd58","name":"setGasFeeConfig(address,uint256)"},{"selector":"0xf2fde38b","name":"transferOwnership(address)"},{"selector":"0xfa48f032","name":"snipeTaxPaired(address)"},{"selector":"0xfccc2813","name":"BURN_ADDRESS()"},{"selector":"0xfeb570b4","name":"gasFeeBps()"}],"history":{"pools":4,"firstTime":1789486306,"lastTime":1789664360},"pools":[{"id":"0x11414a21d059d2f8b5f26bd9797db386aba36671fb40dd1add7b16cdb8e363f4","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0x80E9d17F9903AAD8B50fAc76e959b5536C6DF13d","fee":3000,"tickSpacing":60,"hooks":"0xC059b0e5F2adBfDe4fB6B12D20078C7C1Ca9a044"},"symbols":["ETH","PTEST"],"state":{"sqrtP":"3979951352596491468464043491017382","tick":216499,"protocolFee":0,"lpFee":3000,"liquidity":"48978238140727951356"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"241309030873","paid":"241309030873","got":"600887455733193409441","expected":"606957025993124656001","feePpm":3000,"takePpm":10000},{"zeroForOne":false,"ok":true,"amountIn":"1230187593337707757549","paid":"1230187593337707757549","got":"480937779562","expected":"485795736931","feePpm":3000,"takePpm":10000}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-3071446972","-7507290799018985519"],"removed":["3071446971","7507290799018985518"]}},{"id":"0xc0728dad09f8fe73fc7739e7e249e23489b8293dcca5aa53335194007ad831fa","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0x1c0905000b6d649C36AA8f454E2a4CA1AB9Ff4A2","fee":3000,"tickSpacing":60,"hooks":"0xC059b0e5F2adBfDe4fB6B12D20078C7C1Ca9a044"},"symbols":["ETH","PENGU"],"state":{"sqrtP":"7661901111814952953341316191052608","tick":229600,"protocolFee":0,"lpFee":3000,"liquidity":"8944271909999158785"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"46244281811","paid":"46244281811","got":"426663869357723411422","expected":"430973605411841829719","feePpm":3000,"takePpm":10000},{"zeroForOne":false,"ok":true,"amountIn":"213561689120924195950","paid":"213561689120924195950","got":"22533719819","expected":"22761333150","feePpm":3000,"takePpm":10000}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-282187042","-2725033194408818615"],"removed":["282187041","2725033194408818614"]}}],"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":"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.30%, written in the pool key."},{"id":"05","title":"No one holds the switch","status":"caution","detail":"Owned by 0x1531901509d9f737Dcf0A51f4DFFc43be523349F. Owner-style functions: setPlatformFeeRecipient, burnThreshold, burnVaultBalance, setFees, setFactory, claimPendingFees."},{"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 34 days."}],"score":88,"verdict":"caution"}