{"hook":"0xF7521Cf0bB7C11e2D2794189412614Cf2e29a0cC","block":92923172,"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":11707,"selectors":["0x06c29f11","0x1220ef1f","0x1d0ec52f","0x485cc955","0x4bde38c8","0x4be27441","0x4e71d92d","0x4f1ef286","0x52d1902d","0x5572eb10","0x575e24b4","0x61b4fc7f","0x6945c5ea","0x704b6c02","0x79ba5097","0x833057f5","0x8da5cb5b","0x91b31f13","0x91dd7346","0x9c7be227","0xa04c294b","0xad3cb1cc","0xae5084d7","0xb47b2fb1","0xb7b43ed8","0xb92be3fe","0xc4e833ce","0xcc718f76","0xce91e164","0xcf7568b7","0xdc4c90d3","0xdc98354e","0xdd1b9c4a","0xdf18e047","0xe30c3978","0xea40f8fe","0xef176059","0xf2fde38b","0xf851a440","0xf8bc6db2","0xfa275e11","0xfde28b32"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":8,"addresses":[]},"proxy":{"implementation":"0x2D0D124B975870AbE58f659A18FcD5dDD2680c9F","admin":null,"beacon":null,"clone":false},"owner":"0x7B2DaF7F696bB844C7786693062D6619D1858cC9","functions":[{"selector":"0x06c29f11","name":"referralSplitter()"},{"selector":"0x1220ef1f","name":"accruedEth(bytes32)"},{"selector":"0x1d0ec52f","name":"MAX_SPLIT_RECIPIENTS()"},{"selector":"0x485cc955","name":"initialize(address,address)"},{"selector":"0x4bde38c8","name":"platform()"},{"selector":"0x4be27441","name":"setLauncher(address,bool)"},{"selector":"0x4e71d92d","name":"claim()"},{"selector":"0x4f1ef286","name":"upgradeToAndCall(address,bytes)"},{"selector":"0x52d1902d","name":"proxiableUUID()"},{"selector":"0x5572eb10","name":"configurePool((address,address,uint24,int24,address),(address,uint16,uint16,address[],uint16[],address,uint16))"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x61b4fc7f","name":"addEdge(address,address,uint,uint)"},{"selector":"0x6945c5ea","name":"setPlatform(address)"},{"selector":"0x704b6c02","name":"setAdmin(address)"},{"selector":"0x79ba5097","name":"acceptOwnership()"},{"selector":"0x833057f5","name":"autoDistribute(bytes32,uint256)"},{"selector":"0x8da5cb5b","name":"owner()"},{"selector":"0x91b31f13","name":"refToken(bytes32)"},{"selector":"0x91dd7346","name":"unlockCallback(bytes)"},{"selector":"0x9c7be227","name":"CREATOR_POOL_BPS()"},{"selector":"0xa04c294b","name":"setAutoThreshold(bytes32,uint80)"},{"selector":"0xad3cb1cc","name":"UPGRADE_INTERFACE_VERSION()"},{"selector":"0xae5084d7","name":"setReferralSplitter(address)"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xb7b43ed8","name":"MAX_SIDE_BPS()"},{"selector":"0xb92be3fe","name":"splitsOf(bytes32)"},{"selector":"0xc4e833ce","name":"getHookPermissions()"},{"selector":"0xcc718f76","name":"config(bytes32)"},{"selector":"0xce91e164","name":"PLATFORM_BPS()"},{"selector":"0xcf7568b7","name":"setRewardsBps(bytes32,uint16)"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xdd1b9c4a","name":"POOL_FEE()"},{"selector":"0xdf18e047","name":"owed(address)"},{"selector":"0xe30c3978","name":"pendingOwner()"},{"selector":"0xea40f8fe","name":"distribute(bytes32)"},{"selector":"0xef176059","name":"setRates(bytes32,uint16,uint16)"},{"selector":"0xf2fde38b","name":"transferOwnership(address)"},{"selector":"0xf851a440","name":"admin()"},{"selector":"0xf8bc6db2","name":"setTokenCreator(bytes32,address)"},{"selector":"0xfa275e11","name":"isLauncher(address)"},{"selector":"0xfde28b32","name":"markReferred((address,address,uint24,int24,address))"}],"history":{"pools":2293,"firstTime":1784342900,"lastTime":1792378432},"pools":[{"id":"0x3b20a2f3259f8994253c151dda36215d36d440dbb2bb34f74c99c352f41e1825","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0xe77Dc24f192a6ce54de539E6c3A1484953Ab0123","fee":3000,"tickSpacing":200,"hooks":"0xF7521Cf0bB7C11e2D2794189412614Cf2e29a0cC"},"symbols":["ETH","gewq"],"state":{"sqrtP":"2151811586250556814247583596468274","tick":204199,"protocolFee":0,"lpFee":3000,"liquidity":"36819258015569838458222"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"677829363953551","paid":"677829363953551","got":"483310952457665227369717","expected":"498251266127516724676837","feePpm":3000,"takePpm":29986},{"zeroForOne":false,"ok":true,"amountIn":"178342907367149040464","paid":"178342907367149040464","got":"233815523722","expected":"241046931672","feePpm":3000,"takePpm":30000}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-4006473564382","-3920792602221896916865"],"removed":["4006473564381","3920792602221896916864"]}}],"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 3% 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.30%, written in the pool key."},{"id":"05","title":"No one holds the switch","status":"caution","detail":"Owned by 0x7B2DaF7F696bB844C7786693062D6619D1858cC9. Owner-style functions: setLauncher, claim, upgradeToAndCall, setPlatform, setAdmin, setAutoThreshold."},{"id":"06","title":"The code cannot change","status":"fail","detail":"It is a proxy. The code that runs lives at 0x2D0D124B975870AbE58f659A18FcD5dDD2680c9F."},{"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":"2293 pools over 93 days."}],"score":60,"verdict":"danger"}