{"hook":"0x36231e20862A55041776BBf64B81264eF84120cC","block":93241568,"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":8038,"selectors":["0x03afd56b","0x0e228ab1","0x140c5759","0x1a6e0669","0x1ab24561","0x1e83409a","0x23058f76","0x46ca626b","0x4727b76e","0x54d212fc","0x575e24b4","0x61d027b3","0x68eb4512","0x7a9d1fa0","0x7b103999","0x7e686e01","0x91dd7346","0x95ceb1c3","0xa6a86130","0xac4e4054","0xb152f6cf","0xb47b2fb1","0xbeae30f5","0xc1e7af35","0xd8a6021c","0xdc4c90d3","0xdc98354e","0xdf0b3667","0xe1a45218","0xf82e9b9d"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":6,"addresses":[]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0x03afd56b","name":"withdrawPending(address)"},{"selector":"0x0e228ab1","name":"treasuryOwed(address)"},{"selector":"0x140c5759","name":"feeTier(uint256)"},{"selector":"0x1a6e0669","name":null},{"selector":"0x1ab24561","name":null},{"selector":"0x1e83409a","name":"claim(address)"},{"selector":"0x23058f76","name":"NATIVE_PUSH_GAS()"},{"selector":"0x46ca626b","name":"TICK_SPACING()"},{"selector":"0x4727b76e","name":"PIPS_PER_BPS()"},{"selector":"0x54d212fc","name":null},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x61d027b3","name":"treasury()"},{"selector":"0x68eb4512","name":"creatorOwed(address)"},{"selector":"0x7a9d1fa0","name":null},{"selector":"0x7b103999","name":"registry()"},{"selector":"0x7e686e01","name":"claimMany(address[])"},{"selector":"0x91dd7346","name":"unlockCallback(bytes)"},{"selector":"0x95ceb1c3","name":"creatorOverride(address)"},{"selector":"0xa6a86130","name":"usdToWei(uint256)"},{"selector":"0xac4e4054","name":"REQUIRED_HOOK_FLAGS()"},{"selector":"0xb152f6cf","name":"TOKEN_SUPPLY()"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xbeae30f5","name":"pendingEth(address)"},{"selector":"0xc1e7af35","name":"PROTOCOL_BPS()"},{"selector":"0xd8a6021c","name":"transferTreasury(address)"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xdf0b3667","name":"LP_BPS()"},{"selector":"0xe1a45218","name":"BPS_DENOMINATOR()"},{"selector":"0xf82e9b9d","name":"transferCreator(address,address)"}],"history":{"pools":5,"firstTime":1784146039,"lastTime":1784211595},"pools":[{"id":"0x096dbe3cbbd06a30854c77c52b5e4517e1e874dfbb8a6e6c921320f302d345b7","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0xEB9893236e0BE85F42bA6B9c5bF590918Fc1Fea7","fee":8388608,"tickSpacing":60,"hooks":"0x36231e20862A55041776BBf64B81264eF84120cC"},"symbols":["ETH","LAUNCH"],"state":{"sqrtP":"1996805257721871935163190343553772","tick":202704,"protocolFee":0,"lpFee":0,"liquidity":"42496528522726710900934"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"520471646893788","paid":"520471646893788","got":"326373702223417810418285","expected":"330502916997470878664989","feePpm":0,"takePpm":12494},{"zeroForOne":false,"ok":true,"amountIn":"473263781500447323957412","paid":"473263781500447323957412","got":"735423290337619","expected":"744730524898287","feePpm":0,"takePpm":12498}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-5271799836582","-3293449608831039324194"],"removed":["5271799836581","3293449608831039324193"]}},{"id":"0xb2e3227ea49d654eef713ca85b19eafa32dc650fc35166c2b16b7932208f6d31","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0x70Ee36F6F540C68Bd0e9327Ad56aE3E00A1AFea7","fee":8388608,"tickSpacing":60,"hooks":"0x36231e20862A55041776BBf64B81264eF84120cC"},"symbols":["ETH","LAUNCH"],"state":{"sqrtP":"1997983331758858001251207440794856","tick":202716,"protocolFee":0,"lpFee":0,"liquidity":"42496528522726710900934"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"769024103332294","paid":"769024103332294","got":"482733037908928108111603","expected":"488839578193911339779312","feePpm":0,"takePpm":12492},{"zeroForOne":false,"ok":true,"amountIn":"315289472473500737349046","paid":"315289472473500737349046","got":"489435398482323","expected":"495629519436683","feePpm":0,"takePpm":12498}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-5172378854006","-3356639332441817958836"],"removed":["5172378854005","3356639332441817958835"]}}],"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 1.25% 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":"caution","detail":"Its pools use a dynamic fee that the hook sets before every swap. It stands at 0% now and can change."},{"id":"05","title":"No one holds the switch","status":"caution","detail":"No owner() but it has withdrawPending, claim, claimMany, transferTreasury, transferCreator."},{"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":"5 pools over 96 days."}],"score":73,"verdict":"caution"}