{"hook":"0xc6f3Aedb47414e8be7E0B2068F82463628c9a0C8","block":93468423,"bits":8392,"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":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":8157,"selectors":["0xc45a0155","0xc4e833ce","0xcece6f3d","0xdc98354e","0x8720c01d","0x91dd7346","0xb47b2fb1","0x04bc1c88","0x0885f732","0x481c6a75","0x575e24b4","0x6c801033","0x8549d9be"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":6,"addresses":[]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0xc45a0155","name":null},{"selector":"0xc4e833ce","name":"getHookPermissions()"},{"selector":"0xcece6f3d","name":"collect(bytes32,address)"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0x8720c01d","name":"accruedFees(bytes32,address)"},{"selector":"0x91dd7346","name":"unlockCallback(bytes)"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0x04bc1c88","name":"taxCarry(bytes32,address)"},{"selector":"0x0885f732","name":"poolConfig(bytes32)"},{"selector":"0x481c6a75","name":"manager()"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x6c801033","name":"registerPool((address,address,uint24,int24,address),address,uint16)"},{"selector":"0x8549d9be","name":"REQUIRED_FLAGS()"}],"history":{"pools":3,"firstTime":1789325129,"lastTime":1789368503},"pools":[{"id":"0xc92b122285e0e5bedeae52e488cb359f9e3c21d7b77d23c05f0dc59ab8275f57","key":{"currency0":"0x0518cfCf2F300327036Dde1eB2ddD7C20372f329","currency1":"0xd15A9F8df29b00611275BBf11adaE065DC7E1750","fee":0,"tickSpacing":1,"hooks":"0xc6f3Aedb47414e8be7E0B2068F82463628c9a0C8"},"symbols":["ELON","qELON"],"state":{"sqrtP":"5847269268852158342114733","tick":-190292,"protocolFee":0,"lpFee":0,"liquidity":"94585407708245305936740"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"3832127457527532620773","paid":"3832127457527532620773","got":"18785739946328","expected":"20873038143527","feePpm":0,"takePpm":100000},{"zeroForOne":false,"ok":true,"amountIn":"66382408074092","paid":"66382408074092","got":"10968437763261385847965","expected":"12187141481089565315401","feePpm":0,"takePpm":100000}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-3792228233691536916961","-20638109802726"],"removed":["3792228233691536916960","20638109802725"]}},{"id":"0x94a038420d51f10356a4bfb0126f9f8787e764eae5f329696df47ebcaee84ae1","key":{"currency0":"0xd15A9F8df29b00611275BBf11adaE065DC7E1750","currency1":"0xdF2155518a7c541E64581ac10f12184C72FBfa92","fee":0,"tickSpacing":1,"hooks":"0xc6f3Aedb47414e8be7E0B2068F82463628c9a0C8"},"symbols":["qELON","TEST1"],"state":{"sqrtP":"1073095898937305105134334979829329","tick":190284,"protocolFee":0,"lpFee":0,"liquidity":"94590136860404869785298"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"3924131520266","paid":"3924131520266","got":"712683017998680483421","expected":"719881832317374922157","feePpm":0,"takePpm":10000},{"zeroForOne":false,"ok":true,"amountIn":"15294235938671459693883","paid":"15294235938671459693883","got":"82535340025640","expected":"83369020376651","feePpm":0,"takePpm":10000}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-20671360218416","-3786505489561418789032"],"removed":["20671360218415","3786505489561418789031"]}}],"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 10% 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%, written in the pool key."},{"id":"05","title":"No one holds the switch","status":"caution","detail":"No owner() but it has collect."},{"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 36 days."}],"score":75,"verdict":"caution"}