{"hook":"0x816b4043fE55B9a982C2BaeFB746c9F541C380Cc","block":93035511,"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":4897,"selectors":["0x0e57d4ce","0x21c0b342","0x21d0ee70","0x259982e5","0x28079e4a","0x4ab38c7e","0x575e24b4","0x57ee39a2","0x5d3fb261","0x6c2bbe7e","0x6fe7e6eb","0x77329f35","0x7e6bc84a","0x8549d9be","0x9f063efc","0xb47b2fb1","0xb6a8b0fa","0xbf333f2c","0xc1b8411a","0xdc4c90d3","0xdc98354e"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":3,"addresses":["0xdC5B2713231559Bda139307E340A6d6308389548","0x36B0E9d975F64e9f6eF78EF988515449F085CdD4","0xC3b99ECD17E6Af20e74BffE2Ea43B2545634A7aF","0x26E8134eCC3af5cCE32f34B03E7BD2f318B25158","0x388283B252975E069866748a8cC1A04FEffDD0c8"]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0x0e57d4ce","name":"recipients()"},{"selector":"0x21c0b342","name":"claim(address,address)"},{"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":"0x28079e4a","name":"owed(address,address)"},{"selector":"0x4ab38c7e","name":"PART1B()"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x57ee39a2","name":"STACC()"},{"selector":"0x5d3fb261","name":"PART2()"},{"selector":"0x6c2bbe7e","name":"afterRemoveLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0x6fe7e6eb","name":"afterInitialize(address,(address,address,uint24,int24,address),uint160,int24)"},{"selector":"0x77329f35","name":"claimAll(address)"},{"selector":"0x7e6bc84a","name":"PART1A()"},{"selector":"0x8549d9be","name":"REQUIRED_FLAGS()"},{"selector":"0x9f063efc","name":"afterAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xb6a8b0fa","name":"beforeDonate(address,(address,address,uint24,int24,address),uint256,uint256,bytes)"},{"selector":"0xbf333f2c","name":"FEE_BPS()"},{"selector":"0xc1b8411a","name":"DEPLOYER()"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"}],"history":{"pools":16,"firstTime":1788647314,"lastTime":1788813844},"pools":[{"id":"0xd75a1bcc3872e165992d8d5eed074e8f4e3d1b1f2a41229b81ec0140585ad737","key":{"currency0":"0x8B48A4C7e5B5Eb30dfAdf6771D58B0CBbC7029F4","currency1":"0x9a5baA12664c89cFbF5cFcD9d0D4805bDcAB29E8","fee":3000,"tickSpacing":60,"hooks":"0x816b4043fE55B9a982C2BaeFB746c9F541C380Cc"},"symbols":["SWOS","OMNI"],"state":{"sqrtP":"2387501573524733472045312253","tick":-70046,"protocolFee":0,"lpFee":3000,"liquidity":"239"},"swaps":[{"zeroForOne":true,"ok":false,"why":"thin","reason":"too little liquidity to measure"},{"zeroForOne":false,"ok":true,"amountIn":"1000","paid":"2","got":"9","expected":"7874","feePpm":3000,"takePpm":428499}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-1021235610046","-941418491"],"removed":["1021235610045","941418490"]}},{"id":"0x5a1665a13cd46387e0bbd713313298009979bcd20c50ae5d6c01d31c436e10e2","key":{"currency0":"0x9a5baA12664c89cFbF5cFcD9d0D4805bDcAB29E8","currency1":"0xEc5393C3Ab9a223fFCDD844310E0E71b1793Edb1","fee":3000,"tickSpacing":60,"hooks":"0x816b4043fE55B9a982C2BaeFB746c9F541C380Cc"},"symbols":["OMNI","heehee420"],"state":{"sqrtP":"1813123743996270326427573557979","tick":62612,"protocolFee":0,"lpFee":3000,"liquidity":"291396210867216761753492391"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"5196431698441952562469","paid":"5196431698441952562469","got":"2709473601271207289169826","expected":"2712185787058265554724550","feePpm":3000,"takePpm":1000},{"zeroForOne":false,"ok":true,"amountIn":"2283494081804018271227202","paid":"2283494081804018271227202","got":"4341267740346443504677","expected":"4345613353700143648325","feePpm":3000,"takePpm":1000}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-39320521282327222831","-20762277875001430783004"],"removed":["39320521282327222830","20762277875001430783003"]}}],"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":"fail","detail":"It took 42.85% 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.30%, written in the pool key."},{"id":"05","title":"No one holds the switch","status":"caution","detail":"No owner() but it has claim, claimAll."},{"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":"16 pools over 44 days."}],"score":63,"verdict":"danger"}