{"hook":"0x49D8e239878Ba17EBd2eC9De5F8b25fC66d5aaeC","block":93001411,"bits":10988,"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":true},{"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":true},{"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":true},{"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":15919,"selectors":["0xe1b4af69","0xf388f33c","0xfacba08d","0xd6c4dad5","0xdc4c90d3","0xdc98354e","0xc4e833ce","0xc55bee61","0xca50f4db","0xb5217bb4","0xb6a8b0fa","0xbf333f2c","0xa53e5412","0xb47b2fb1","0xb48b6258","0x91dd7346","0x92822047","0x9f063efc","0x7b7159bf","0x80302060","0x861fbe84","0x6fe7e6eb","0x72a56490","0x65015123","0x6c2bbe7e","0x6ebb8cd2","0x61e512f6","0x62308e85","0x63875629","0x57ae3a9f","0x5e3f2727","0x618f105b","0x46ca626b","0x575e24b4","0x28079e4a","0x29ffcd81","0x36ee94c0","0x21c0b342","0x21d0ee70","0x259982e5","0x0ad9ca6c","0x14ca514c","0x21b7d4d8","0x02cf7d20","0x05ea488e"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":4,"addresses":["0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73"]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0xe1b4af69","name":"afterDonate(address,(address,address,uint24,int24,address),uint256,uint256,bytes)"},{"selector":"0xf388f33c","name":"lastAdd(bytes32)"},{"selector":"0xfacba08d","name":"owedOf(address,address)"},{"selector":"0xd6c4dad5","name":"proposeProtocolRecipient(uint8,address)"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xc4e833ce","name":"getHookPermissions()"},{"selector":"0xc55bee61","name":"protocolRecipient(uint8)"},{"selector":"0xca50f4db","name":"reassignCreator(bytes32,address)"},{"selector":"0xb5217bb4","name":"pools(bytes32)"},{"selector":"0xb6a8b0fa","name":"beforeDonate(address,(address,address,uint24,int24,address),uint256,uint256,bytes)"},{"selector":"0xbf333f2c","name":"FEE_BPS()"},{"selector":"0xa53e5412","name":"WINDOW()"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xb48b6258","name":"RECIPIENT_DELAY()"},{"selector":"0x91dd7346","name":"unlockCallback(bytes)"},{"selector":"0x92822047","name":"PROTOCOL_SHARE_BPS()"},{"selector":"0x9f063efc","name":"afterAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0x7b7159bf","name":"LAUNCHER()"},{"selector":"0x80302060","name":"claimMany(address,address[])"},{"selector":"0x861fbe84","name":"acceptCreator(bytes32)"},{"selector":"0x6fe7e6eb","name":"afterInitialize(address,(address,address,uint24,int24,address),uint160,int24)"},{"selector":"0x72a56490","name":"register((address,address,uint24,int24,address),address,(address,uint8,uint8,uint128,int24))"},{"selector":"0x65015123","name":"pendingProtocolRecipient(uint8)"},{"selector":"0x6c2bbe7e","name":"afterRemoveLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0x6ebb8cd2","name":"DEPLOYED_AT()"},{"selector":"0x61e512f6","name":"pendingCreator(bytes32)"},{"selector":"0x62308e85","name":"POOL_MANAGER()"},{"selector":"0x63875629","name":"feeTerms(bytes32)"},{"selector":"0x57ae3a9f","name":"USDG()"},{"selector":"0x5e3f2727","name":"LP_FEE()"},{"selector":"0x618f105b","name":"proposeCreator(bytes32,address)"},{"selector":"0x46ca626b","name":"TICK_SPACING()"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x28079e4a","name":"owed(address,address)"},{"selector":"0x29ffcd81","name":"COMPOUND_SALT()"},{"selector":"0x36ee94c0","name":"FULL_RANGE_UPPER()"},{"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":"0x0ad9ca6c","name":"cancelCreator(bytes32)"},{"selector":"0x14ca514c","name":"CURVE_TICK_LOWER()"},{"selector":"0x21b7d4d8","name":"LP_MIN_HOLD()"},{"selector":"0x02cf7d20","name":"acceptProtocolRecipient(uint8)"},{"selector":"0x05ea488e","name":"cancelProtocolRecipient(uint8)"}],"history":{"pools":21,"firstTime":1791873029,"lastTime":1792375456},"pools":[{"id":"0x55a54389ca32c21b4d4a05d60c99b27d2cca930cd0089bffe483dfde166bfb6e","key":{"currency0":"0x3bA500F1AbabbCF0F0247D06D1c56Fd7E6C4c09D","currency1":"0xA3303acF62d5195D548207636863961CB8d13A0D","fee":1000,"tickSpacing":100,"hooks":"0x49D8e239878Ba17EBd2eC9De5F8b25fC66d5aaeC"},"symbols":["WORM","BARNWRM"],"state":{"sqrtP":"778161213422018732441042973071","tick":45694,"protocolFee":0,"lpFee":1000,"liquidity":"101785689681926742035240225"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"5181633975486180821930","paid":"5181633975486180821930","got":"494120303473710231824455","expected":"499108925833343718451756","feePpm":1000,"takePpm":9996},{"zeroForOne":false,"ok":true,"amountIn":"70955584623043250246563","paid":"70955584623043250246563","got":"727405332312610820281","expected":"734752860921829111395","feePpm":1000,"takePpm":10001}],"roundTrip":{"ok":false,"stage":"remove","reason":"HoldNotOver"}},{"id":"0xbb5b02d1ec69b126ddc8907edf2b23413bc8b935db79f3c97eab1b47757cade2","key":{"currency0":"0x3bA500F1AbabbCF0F0247D06D1c56Fd7E6C4c09D","currency1":"0x7544481283E2b7F6BAAa334Ca8818E510A1974d3","fee":1000,"tickSpacing":100,"hooks":"0x49D8e239878Ba17EBd2eC9De5F8b25fC66d5aaeC"},"symbols":["WORM","GLOWORM"],"state":{"sqrtP":"747677903588274781948868809497","tick":44895,"protocolFee":0,"lpFee":1000,"liquidity":"105939430614603472679943872"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"5612969425149975229356","paid":"5612969425149975229356","got":"494138367500566688071578","expected":"499127172234022192583218","feePpm":1000,"takePpm":9996},{"zeroForOne":false,"ok":true,"amountIn":"61818690352042755398740","paid":"61818690352042755398740","got":"686473429313505255059","expected":"693407504357076015212","feePpm":1000,"takePpm":10001}],"roundTrip":{"ok":false,"stage":"remove","reason":"HoldNotOver"}}],"openCallbacks":[],"checks":[{"id":"01","title":"Permissions that touch your money","status":"caution","detail":"The address enables before remove liquidity, 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 1.00% of each swap on top of the pool fee."},{"id":"03","title":"LPs can get out","status":"fail","detail":"Liquidity went in and could not come back out."},{"id":"04","title":"The fee is the fee","status":"pass","detail":"A fixed fee of 0.10%, written in the pool key."},{"id":"05","title":"No one holds the switch","status":"caution","detail":"No owner() but it has claimMany, 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":"caution","detail":"21 pools, first seen 6 days ago."}],"score":57,"verdict":"danger"}