{"hook":"0x50B9Af842DACB8Fc7476660cc86d3787CAD66aC4","block":93270222,"bits":10948,"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":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":false},{"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":22925,"selectors":["0x028541ed","0x060705fa","0x079e3b27","0x14fea90e","0x16c38b3c","0x1ea000c8","0x1f4efc39","0x21d0ee70","0x259982e5","0x264f5173","0x2a963f9e","0x2dc4609a","0x2e9fb454","0x2f3a3d5d","0x32d3bae6","0x37e19a6a","0x3a3d622b","0x3b110cc4","0x40c8aa3d","0x43dca611","0x4ccfc5c7","0x4f1ef286","0x52d1902d","0x53418a74","0x54f893ef","0x5578ae93","0x575e24b4","0x5760f2e3","0x5a142ed8","0x5c975abb","0x5e318e07","0x5e9b2029","0x616f3f22","0x624745b0","0x637e8ab4","0x64df049e","0x6731b48f","0x68067980","0x6916c5ef","0x6923f13a","0x6c2bbe7e","0x6f145916","0x6fe7e6eb","0x715018a6","0x72c6fa1a","0x753c8133","0x765b080e","0x791b98bc","0x79ba5097","0x7d9af923","0x800898b3","0x81163194","0x827f1c10","0x88ed34e6","0x8a29e2de","0x8ad234a4","0x8b4c5b4c","0x8da5cb5b","0x8dbbea4d","0x8ebd1eba","0x902d55a5","0x91dd7346","0x92a6c219","0x96a7d57b","0x98705c92","0x98edf5cb","0x9d19907e","0x9e49c9c9","0x9f063efc","0xa0b82f82","0xa0cf0aea","0xa2327859","0xa3aa08c6","0xa4ba9799","0xa6cff88b","0xad3cb1cc","0xb16c6912","0xb20d0ece","0xb47b2fb1","0xb556d4e5","0xb64fecfa","0xb6a8b0fa","0xb81984b3","0xbc0a3981","0xbe378228","0xc149ec17","0xc1bb91ca","0xc3a23a57","0xc4b677c6","0xc4da3b1c","0xc4e833ce","0xc896b660","0xcd6e7dff","0xd0c93a7c","0xdc4c90d3","0xdc98354e","0xdd1b9c4a","0xde1adc0a","0xe1a45218","0xe1b4af69","0xe30c3978","0xe521cb92","0xe6427588","0xed10292f","0xf085a610","0xf267f959","0xf2fde38b","0xf30878c1","0xf92d05cd","0xfccc2813","0xfd874995","0xfdf262b7","0xfec102f7"],"delegatecall":true,"selfdestruct":false,"create":false,"calls":3,"addresses":["0x82b56E69Fa759C7544fe4311f89AdCEEF6576b73","0x0Db18d027e4Efa00941c77bD370B510d9247a569"]},"proxy":{"implementation":"0x1f41B7Fd33515c2B591bE4e1437c74eD6b78AAC4","admin":null,"beacon":null,"clone":false},"owner":"0x0000000F7ccd4072641B091F59f2ccD107fEd445","functions":[{"selector":"0x028541ed","name":"positionManagerCodeHash()"},{"selector":"0x060705fa","name":"buybacksDisabled()"},{"selector":"0x079e3b27","name":"TRADING_MODULE_VERSION()"},{"selector":"0x14fea90e","name":"setTokenLockerDefaults(address,address)"},{"selector":"0x16c38b3c","name":"setPaused(bool)"},{"selector":"0x1ea000c8","name":"getLaunchPoolKey(uint256)"},{"selector":"0x1f4efc39","name":"accumulatedBuyback(uint256)"},{"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":"0x264f5173","name":"saleSplitCalculator()"},{"selector":"0x2a963f9e","name":"MIN_RAISE()"},{"selector":"0x2dc4609a","name":"setViewer(address)"},{"selector":"0x2e9fb454","name":"createLaunchWithReferral((string,string,string,string,string,string,string,uint16,uint32,uint96,uint32,uint64),string)"},{"selector":"0x2f3a3d5d","name":"tokenImplementation()"},{"selector":"0x32d3bae6","name":"BUYBACK_FLUSH_THRESHOLD()"},{"selector":"0x37e19a6a","name":"NATIVE_PRICE_SCALE()"},{"selector":"0x3a3d622b","name":"withdrawProtocolSurplus(address,uint256)"},{"selector":"0x3b110cc4","name":"buy(uint256,uint256,(uint256,bytes))"},{"selector":"0x40c8aa3d","name":"updateCreatorFeeSplit(uint256,uint16)"},{"selector":"0x43dca611","name":"tradingModuleCodeHash()"},{"selector":"0x4ccfc5c7","name":"MAX_RAISE()"},{"selector":"0x4f1ef286","name":"upgradeToAndCall(address,bytes)"},{"selector":"0x52d1902d","name":"proxiableUUID()"},{"selector":"0x53418a74","name":"usedBuybackAuthorizations(bytes32)"},{"selector":"0x54f893ef","name":"VARIABLE_FEE_BPS()"},{"selector":"0x5578ae93","name":"defaultTokenLockerTwo()"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x5760f2e3","name":"setPositionManager(address)"},{"selector":"0x5a142ed8","name":"QUOTE_CONFIGURATION_MODE()"},{"selector":"0x5c975abb","name":"paused()"},{"selector":"0x5e318e07","name":"withdrawFees(uint256)"},{"selector":"0x5e9b2029","name":"approveComponentCodeHash(uint8,bytes32)"},{"selector":"0x616f3f22","name":"previewSell(uint256,uint128)"},{"selector":"0x624745b0","name":"COMPATIBILITY_VERSION()"},{"selector":"0x637e8ab4","name":"tradingModule()"},{"selector":"0x64df049e","name":"protocolFeeRecipient()"},{"selector":"0x6731b48f","name":"previewModule()"},{"selector":"0x68067980","name":"buyFor(uint256,address,uint256,(uint256,bytes))"},{"selector":"0x6916c5ef","name":"captchaSigner()"},{"selector":"0x6923f13a","name":"TOKEN_FEE_FLUSH_THRESHOLD()"},{"selector":"0x6c2bbe7e","name":"afterRemoveLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0x6f145916","name":"accountedProtocolSurplus()"},{"selector":"0x6fe7e6eb","name":"afterInitialize(address,(address,address,uint24,int24,address),uint160,int24)"},{"selector":"0x715018a6","name":"renounceOwnership()"},{"selector":"0x72c6fa1a","name":"accumulatedTokenFees(uint256)"},{"selector":"0x753c8133","name":"usedBuybackNonces(uint256,uint256)"},{"selector":"0x765b080e","name":"setCaptchaSigner(address)"},{"selector":"0x791b98bc","name":"positionManager()"},{"selector":"0x79ba5097","name":"acceptOwnership()"},{"selector":"0x7d9af923","name":"MIN_BUY_ETH()"},{"selector":"0x800898b3","name":"setCalculatorAndViewer(address,address)"},{"selector":"0x81163194","name":"launchNativeDust(uint256)"},{"selector":"0x827f1c10","name":"executeAccumulatedBuyback(uint256)"},{"selector":"0x88ed34e6","name":"buybackAuthorizer()"},{"selector":"0x8a29e2de","name":"initialize(address,address,address,address,address,address,address,address)"},{"selector":"0x8ad234a4","name":"sell(uint256,uint128,uint256,(uint256,bytes))"},{"selector":"0x8b4c5b4c","name":"buybackExecutor()"},{"selector":"0x8da5cb5b","name":"owner()"},{"selector":"0x8dbbea4d","name":"createLaunch((string,string,string,string,string,string,string,uint16,uint32,uint96,uint32,uint64))"},{"selector":"0x8ebd1eba","name":"MAX_GAIN_BPS()"},{"selector":"0x902d55a5","name":"TOTAL_SUPPLY()"},{"selector":"0x91dd7346","name":"unlockCallback(bytes)"},{"selector":"0x92a6c219","name":"setLimitOrderSettlement(address)"},{"selector":"0x96a7d57b","name":"donateProtocolSurplus()"},{"selector":"0x98705c92","name":"buyForSettlement(uint256,address,uint256,(uint256,bytes))"},{"selector":"0x98edf5cb","name":"buyWithReferral(uint256,uint256,(uint256,bytes),string)"},{"selector":"0x9d19907e","name":"sellWithReferral(uint256,uint128,uint256,(uint256,bytes),string)"},{"selector":"0x9e49c9c9","name":"protocolLiabilities()"},{"selector":"0x9f063efc","name":"afterAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0xa0b82f82","name":"limitOrderSettlement()"},{"selector":"0xa0cf0aea","name":"NATIVE()"},{"selector":"0xa2327859","name":"recapitalizeLaunch(uint256)"},{"selector":"0xa3aa08c6","name":"componentCodeHashApprover()"},{"selector":"0xa4ba9799","name":"syncForcedEthSurplus()"},{"selector":"0xa6cff88b","name":"SHARED_STORAGE_LAYOUT_VERSION()"},{"selector":"0xad3cb1cc","name":"UPGRADE_INTERFACE_VERSION()"},{"selector":"0xb16c6912","name":"sellForSettlement(uint256,address,uint128,uint256,(uint256,bytes))"},{"selector":"0xb20d0ece","name":"previewBuy(uint256,uint256)"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xb556d4e5","name":"tokenToLaunchId(address)"},{"selector":"0xb64fecfa","name":"executeAccumulatedTokenFees(uint256)"},{"selector":"0xb6a8b0fa","name":"beforeDonate(address,(address,address,uint24,int24,address),uint256,uint256,bytes)"},{"selector":"0xb81984b3","name":"getLaunchSettlement(uint256)"},{"selector":"0xbc0a3981","name":"implementationCodeHash()"},{"selector":"0xbe378228","name":"PROTOCOL_FEE_BPS()"},{"selector":"0xc149ec17","name":"setTradingModule(address)"},{"selector":"0xc1bb91ca","name":"MIN_SELL_TOKENS()"},{"selector":"0xc3a23a57","name":"buybackAuthorizationVersion()"},{"selector":"0xc4b677c6","name":"tokenImplementationCodeHash()"},{"selector":"0xc4da3b1c","name":"calculatorCodeHash()"},{"selector":"0xc4e833ce","name":"getHookPermissions()"},{"selector":"0xc896b660","name":"autoFlushTokenFeesSelf(uint256)"},{"selector":"0xcd6e7dff","name":null},{"selector":"0xd0c93a7c","name":"tickSpacing()"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xdd1b9c4a","name":"POOL_FEE()"},{"selector":"0xde1adc0a","name":"setBuybacksDisabled(bool)"},{"selector":"0xe1a45218","name":"BPS_DENOMINATOR()"},{"selector":"0xe1b4af69","name":"afterDonate(address,(address,address,uint24,int24,address),uint256,uint256,bytes)"},{"selector":"0xe30c3978","name":"pendingOwner()"},{"selector":"0xe521cb92","name":"setProtocolFeeRecipient(address)"},{"selector":"0xe6427588","name":"autoFlushBuybackSelf(uint256)"},{"selector":"0xed10292f","name":"viewerCodeHash()"},{"selector":"0xf085a610","name":"setTickSpacing(int24)"},{"selector":"0xf267f959","name":"previewSaleSplit(uint96,uint32)"},{"selector":"0xf2fde38b","name":"transferOwnership(address)"},{"selector":"0xf30878c1","name":"viewer()"},{"selector":"0xf92d05cd","name":"getLaunchState(uint256)"},{"selector":"0xfccc2813","name":"BURN_ADDRESS()"},{"selector":"0xfd874995","name":"withdrawableFees(address)"},{"selector":"0xfdf262b7","name":"quoteAsset()"},{"selector":"0xfec102f7","name":"defaultTokenLockerOne()"}],"history":{"pools":5,"firstTime":1785052894,"lastTime":1785444926},"pools":[{"id":"0x58caee2e11a5c3b1ca8c3b35f8b704dcac533766ddf4a5c348154474126eb051","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0xf767Cd040d7eD1c4D6837bE6EdeBb12c57d4d564","fee":1000,"tickSpacing":60,"hooks":"0x50B9Af842DACB8Fc7476660cc86d3787CAD66aC4"},"symbols":["ETH","HNGO"],"state":{"sqrtP":"1590689115842376299922455782799832","tick":198156,"protocolFee":0,"lpFee":1000,"liquidity":"33541019664593159175240"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"769736723332954","paid":"769736723332954","got":"303630478602540995632056","expected":"309827018982184689420465","feePpm":1000,"takePpm":20000},{"zeroForOne":false,"ok":true,"amountIn":"195153757737749205362719","paid":"195153757737749205362719","got":"473839560868726","expected":"483509755988495","feePpm":1000,"takePpm":20000}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-5124816833429","-2110362929992744395555"],"removed":["5124816833428","2110362929992744395554"]}},{"id":"0xdf42be4ddd89b70b2c72588460c3781efb4e043f77266cee553438c606f7bc7f","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0xA338C64f33a9F4f28BDCA80056529E0Ce603a946","fee":1000,"tickSpacing":60,"hooks":"0x50B9Af842DACB8Fc7476660cc86d3787CAD66aC4"},"symbols":["ETH","SQUID"],"state":{"sqrtP":"3584574329271334764270507476615642","tick":214407,"protocolFee":0,"lpFee":1000,"liquidity":"21968453786531896016100"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"164519002649936","paid":"164519002649936","got":"329592004393932447371979","expected":"336318371830543313644876","feePpm":1000,"takePpm":20000},{"zeroForOne":false,"ok":true,"amountIn":"409208748367879134893457","paid":"409208748367879134893457","got":"195632891714000","expected":"199625399708163","feePpm":1000,"takePpm":20000}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-1512443544903","-3067923539680104119233"],"removed":["1512443544902","3067923539680104119232"]}}],"openCallbacks":[],"checks":[{"id":"01","title":"Permissions that touch your money","status":"caution","detail":"The address enables before remove liquidity, 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 2% 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.10%, written in the pool key."},{"id":"05","title":"No one holds the switch","status":"caution","detail":"Owned by 0x0000000F7ccd4072641B091F59f2ccD107fEd445. Owner-style functions: setTokenLockerDefaults, setPaused, setViewer, withdrawProtocolSurplus, updateCreatorFeeSplit, upgradeToAndCall."},{"id":"06","title":"The code cannot change","status":"fail","detail":"It is a proxy. The code that runs lives at 0x1f41B7Fd33515c2B591bE4e1437c74eD6b78AAC4."},{"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 85 days."}],"score":60,"verdict":"danger"}