{"hook":"0x641FB3616F52e99587c056dD28297d0A788f2088","block":93432136,"bits":8328,"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":false},{"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":false},{"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":6988,"selectors":["0x03afd56b","0x140c5759","0x1a6e0669","0x1ab24561","0x1e83409a","0x23058f76","0x2996823a","0x46ca626b","0x4727b76e","0x4c36ea67","0x52f411f7","0x54d212fc","0x575e24b4","0x57e9665e","0x61d027b3","0x7b103999","0x91dd7346","0x95ceb1c3","0xa6a86130","0xac4e4054","0xb152f6cf","0xbd41db0c","0xbeae30f5","0xc1e7af35","0xdc4c90d3","0xdc98354e","0xdf0b3667","0xe1a45218","0xf82e9b9d"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":8,"addresses":[]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0x03afd56b","name":"withdrawPending(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":"0x2996823a","name":null},{"selector":"0x46ca626b","name":"TICK_SPACING()"},{"selector":"0x4727b76e","name":"PIPS_PER_BPS()"},{"selector":"0x4c36ea67","name":null},{"selector":"0x52f411f7","name":"creatorOwed1(address)"},{"selector":"0x54d212fc","name":null},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x57e9665e","name":null},{"selector":"0x61d027b3","name":"treasury()"},{"selector":"0x7b103999","name":"registry()"},{"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":"0xbd41db0c","name":"creatorOwed0(address)"},{"selector":"0xbeae30f5","name":"pendingEth(address)"},{"selector":"0xc1e7af35","name":"PROTOCOL_BPS()"},{"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":3,"firstTime":1784078868,"lastTime":1784137840},"pools":[{"id":"0x1e702076230bc1df1a00b3e175318617be2d95129ffa30080986d9adf2e2588c","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0x69285A7B30F03A4A4f0AE8a29a921b7931741320","fee":8388608,"tickSpacing":60,"hooks":"0x641FB3616F52e99587c056dD28297d0A788f2088"},"symbols":["ETH","GENESIS"],"state":{"sqrtP":"2000319906151301978687778217745792","tick":202739,"protocolFee":0,"lpFee":0,"liquidity":"42496528522726710900934"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"841595851177814","paid":"841595851177814","got":"529501430520324875973299","expected":"536199295585764865370260","feePpm":0,"takePpm":12492},{"zeroForOne":false,"ok":true,"amountIn":"1965595070402778815037","paid":"1965595070402778815037","got":"3045030931665","expected":"3083567874807","feePpm":0,"takePpm":12498}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-4975535238407","-3481968883403057142247"],"removed":["4975535238406","3481968883403057142246"]}}],"openCallbacks":[],"checks":[{"id":"01","title":"Permissions that touch your money","status":"caution","detail":"The address enables before 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, 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":"3 pools over 97 days."}],"score":73,"verdict":"caution"}