{"hook":"0x5370602470386c05A2f0aA9e09765C0C9aB5e0cC","block":92983494,"bits":8396,"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":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":15294,"selectors":["0x048457ba","0x175d69cf","0x19fb73c2","0x1afd9d8c","0x1e0f6654","0x353c0970","0x44b573bf","0x463f4540","0x48897c52","0x4c25d197","0x4f2e9a34","0x52e78f36","0x54c3d27c","0x564f8be0","0x575e24b4","0x5f9071d8","0x61d027b3","0x6205f52c","0x656e96e1","0x66e929bf","0x7e54d565","0x84298b63","0x8a34adcd","0x9044ba84","0x91dd7346","0x957b638d","0x95bce659","0x9871387e","0x987757dd","0xad4b85cd","0xb47b2fb1","0xbae667bc","0xbd66528a","0xbfe1574c","0xc45a0155","0xd5570bfd","0xd63b7d85","0xdc4c90d3","0xdc98354e","0xddf91af2","0xdf18e047","0xe88d1db2","0xe89dfb76","0xf5b91b7b","0xfbafca01"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":23,"addresses":[]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0x048457ba","name":"openingRateBps(bytes32)"},{"selector":"0x175d69cf","name":"splitOf(bytes32)"},{"selector":"0x19fb73c2","name":"zzecPool()"},{"selector":"0x1afd9d8c","name":"usdgFee()"},{"selector":"0x1e0f6654","name":"OPENING_WINDOW()"},{"selector":"0x353c0970","name":"MAX_TOTAL_BPS()"},{"selector":"0x44b573bf","name":"MIN_HOLDERS_BPS()"},{"selector":"0x463f4540","name":"OPENING_FEE_SECONDS()"},{"selector":"0x48897c52","name":"flush(address[])"},{"selector":"0x4c25d197","name":"TREASURY_BPS()"},{"selector":"0x4f2e9a34","name":"zzecHook()"},{"selector":"0x52e78f36","name":"hasPass(bytes32,bytes)"},{"selector":"0x54c3d27c","name":"MIN_TOTAL_BPS()"},{"selector":"0x564f8be0","name":"usdgHook()"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x5f9071d8","name":"flushCreator(address,uint256)"},{"selector":"0x61d027b3","name":"treasury()"},{"selector":"0x6205f52c","name":"zzec()"},{"selector":"0x656e96e1","name":"furnace()"},{"selector":"0x66e929bf","name":"bids(bytes32,address)"},{"selector":"0x7e54d565","name":"usdgSpacing()"},{"selector":"0x84298b63","name":"zzecFee()"},{"selector":"0x8a34adcd","name":"register((address,address,uint24,int24,address),address,address,bool,uint16,uint16,uint16)"},{"selector":"0x9044ba84","name":"usdgPool()"},{"selector":"0x91dd7346","name":"unlockCallback(bytes)"},{"selector":"0x957b638d","name":"passSigner()"},{"selector":"0x95bce659","name":"OPENING_FEE_MAX_BPS()"},{"selector":"0x9871387e","name":"passDigest(bytes32,address,uint64)"},{"selector":"0x987757dd","name":"settle(bytes32)"},{"selector":"0xad4b85cd","name":"owedToHolders(address)"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xbae667bc","name":"tokenOf(bytes32)"},{"selector":"0xbd66528a","name":"claim(bytes32)"},{"selector":"0xbfe1574c","name":"zzecSpacing()"},{"selector":"0xc45a0155","name":null},{"selector":"0xd5570bfd","name":"MIN_BURN_BPS()"},{"selector":"0xd63b7d85","name":"openings(bytes32)"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xddf91af2","name":"flushHolders(address,uint256)"},{"selector":"0xdf18e047","name":"owed(address)"},{"selector":"0xe88d1db2","name":"MAX_CREATOR_BPS()"},{"selector":"0xe89dfb76","name":"inOpening(bytes32)"},{"selector":"0xf5b91b7b","name":"usdg()"},{"selector":"0xfbafca01","name":"openingEndsAt(bytes32)"}],"history":{"pools":35,"firstTime":1790019846,"lastTime":1790348429},"pools":[{"id":"0x0b04b33008dab53e5ba4136eeb06c64636c08d88082c971dd259b99ec5259320","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0x1237766FE4Cf78D0F6BAd43659f1008CB3BcE9a1","fee":3000,"tickSpacing":60,"hooks":"0x5370602470386c05A2f0aA9e09765C0C9aB5e0cC"},"symbols":["ETH","YIPES"],"state":{"sqrtP":"2504419264453818763347884827065126","tick":207235,"protocolFee":0,"lpFee":3000,"liquidity":"31656302506284064054804"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"500728994375381","paid":"500728994375381","got":"473664443735301361352276","expected":"498581730033094933913838","feePpm":3000,"takePpm":49977},{"zeroForOne":false,"ok":true,"amountIn":"61628985429540751246619","paid":"61628985429540751246619","got":"58414708164738","expected":"61489166489194","feePpm":3000,"takePpm":50000}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-2983546069488","-3224283574269628340584"],"removed":["2983546069487","3224283574269628340583"]}},{"id":"0x085cdc9ef630cc4dcbf9f01506a861c693eb999f0956809b2be08c1f067506c9","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0xC8cce7F3C5c468C4Ce1c2FBd92E2508D324b353C","fee":3000,"tickSpacing":60,"hooks":"0x5370602470386c05A2f0aA9e09765C0C9aB5e0cC"},"symbols":["ETH","STRIPES"],"state":{"sqrtP":"1673732318116862966062032570768590","tick":199174,"protocolFee":0,"lpFee":3000,"liquidity":"31656302506284064054804"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"649635539656334","paid":"649635539656334","got":"285318247288592191520475","expected":"288928310307895373176762","feePpm":3000,"takePpm":12495},{"zeroForOne":false,"ok":true,"amountIn":"212003097790738394889737","paid":"212003097790738394889737","got":"467546048798872","expected":"473464353214047","feePpm":3000,"takePpm":12500}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-4612654891176","-2088717516945913723624"],"removed":["4612654891175","2088717516945913723623"]}}],"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":"caution","detail":"It takes 5% 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.30%, written in the pool key."},{"id":"05","title":"No one holds the switch","status":"caution","detail":"No owner() but it has settle, claim."},{"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":"35 pools over 28 days."}],"score":75,"verdict":"caution"}