{"hook":"0x3472e70c1d40eEB5985d8C3142F69BfF47408088","block":93060880,"bits":136,"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":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":6584,"selectors":["0x03f45d41","0x0cc3bd98","0x13af4035","0x13e7c9d8","0x24040ca6","0x558a7297","0x575e24b4","0x7b1837de","0x8da5cb5b","0x91dd7346","0xb12527f8","0xbc03949f","0xc4e833ce","0xcc0168b2","0xdc4c90d3","0xe53a188b","0xf057850d","0xf5adb89c"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":11,"addresses":[]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":"0xa307B4C7AD1eb1CC8656Ba15Ab7C07C3Fe88fEFf","functions":[{"selector":"0x03f45d41","name":"allowlisted(address)"},{"selector":"0x0cc3bd98","name":null},{"selector":"0x13af4035","name":"setOwner(address)"},{"selector":"0x13e7c9d8","name":"operators(address)"},{"selector":"0x24040ca6","name":"setAllowlistBatch(address[],bool)"},{"selector":"0x558a7297","name":"setOperator(address,bool)"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x7b1837de","name":"fund(address,uint256)"},{"selector":"0x8da5cb5b","name":"owner()"},{"selector":"0x91dd7346","name":"unlockCallback(bytes)"},{"selector":"0xb12527f8","name":"setAllowlist(address,bool)"},{"selector":"0xbc03949f","name":"defund(address,uint256,address)"},{"selector":"0xc4e833ce","name":"getHookPermissions()"},{"selector":"0xcc0168b2","name":"pegOf(bytes32)"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xe53a188b","name":null},{"selector":"0xf057850d","name":"MAX_SELL_TAX_BPS()"},{"selector":"0xf5adb89c","name":null}],"history":{"pools":12,"firstTime":1792186750,"lastTime":1792208271},"pools":[{"id":"0x148740517b90172ad528d6778e5495b320e9e8bc6ae24d83022a3dbcd6f1ebb1","key":{"currency0":"0x983a61426ea7F2485Dcb0217e501Aa9A2D149632","currency1":"0xd06060E73363bf782f5f51063bE37Aab11139EEC","fee":0,"tickSpacing":30,"hooks":"0x3472e70c1d40eEB5985d8C3142F69BfF47408088"},"symbols":["SUSD","NVDA"],"state":{"sqrtP":"5490501827493983411074294417665959","tick":222935,"protocolFee":0,"lpFee":0,"liquidity":"15022209147246261120"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"13857876697","paid":"13857876697","got":"66552076759429797686","expected":"66547821527835103036","feePpm":0,"takePpm":-63},{"zeroForOne":false,"ok":true,"amountIn":"324027417315523306940","paid":"324027417315523306940","got":"674709522","expected":"67449959123","feePpm":0,"takePpm":989997}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-666782044","-3102405955978728639"],"removed":["666782043","3102405955978728638"]}},{"id":"0x740c49deb1207ee2de56dcce2f2407f56d54c414f3c078a968ef2a96d35e5dc0","key":{"currency0":"0x5fc5910F80A6C1275fcFde8FE95056D7D536d168","currency1":"0x983a61426ea7F2485Dcb0217e501Aa9A2D149632","fee":0,"tickSpacing":30,"hooks":"0x3472e70c1d40eEB5985d8C3142F69BfF47408088"},"symbols":["USDG","SUSD"],"state":{"sqrtP":"79228162865480407249195142722","tick":0,"protocolFee":0,"lpFee":0,"liquidity":"338374998097383"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"375001","paid":"375001","got":"3750","expected":"375001","feePpm":0,"takePpm":990001},{"zeroForOne":false,"ok":true,"amountIn":"126979111223","paid":"126979111223","got":"126979111223","expected":"126931477600","feePpm":0,"takePpm":-375}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-31007513054","-29553015313"],"removed":["31007513053","29553015312"]}}],"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":"fail","detail":"It took 99.00% of a 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 0xa307B4C7AD1eb1CC8656Ba15Ab7C07C3Fe88fEFf. Owner-style functions: setOwner, setAllowlistBatch, setOperator, setAllowlist."},{"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":"caution","detail":"12 pools, first seen 3 days ago."}],"score":60,"verdict":"danger"}