{"hook":"0xe37A0B7c7b702251E85587De2245FC78C5bD0880","block":92951979,"bits":2176,"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":false},{"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":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":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":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":14330,"selectors":["0x037aadbe","0x08ac6289","0x0d5b555a","0x16c38b3c","0x21d0ee70","0x259982e5","0x2b6ad0e8","0x2d398609","0x38759da4","0x38b90333","0x3b01d64d","0x3b9d33f0","0x3c4f4b8e","0x3fc48eba","0x4000072e","0x4054681c","0x40bba228","0x41d1e9b1","0x4697f05d","0x46fa9e23","0x4eba8678","0x53e579bf","0x575e24b4","0x59926663","0x5a6c72d0","0x5c975abb","0x5fbbc0d2","0x63e094ad","0x68f0a1d9","0x6c2bbe7e","0x6fe7e6eb","0x79fee53d","0x8da5cb5b","0x94168af8","0x9789ae80","0x9a50c628","0x9d951b3b","0x9f063efc","0x9f43c63f","0xa186e9ff","0xa3f4bac7","0xac4e4054","0xacb6e574","0xaccb0d91","0xaf7d96ec","0xb38efaf1","0xb40d4551","0xb47b2fb1","0xb6a8b0fa","0xb7154f76","0xbabcc539","0xc4e833ce","0xc5117d93","0xcb3b3ab3","0xce031cd7","0xce07d308","0xce6f4cf8","0xcf2b0cac","0xd595408a","0xdc4c90d3","0xdc98354e","0xded04a67","0xe0b01bac","0xe1a45218","0xe1b4af69","0xf26ef49d","0xf3e05870"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":0,"addresses":[]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":"0xEFC1CA712e8F78Cf1B097Cb2DACe809A017132F3","functions":[{"selector":"0x037aadbe","name":"getPoolConfig(bytes32)"},{"selector":"0x08ac6289","name":"tierTwoFee()"},{"selector":"0x0d5b555a","name":"previewFee(bytes32)"},{"selector":"0x16c38b3c","name":"setPaused(bool)"},{"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":"0x2b6ad0e8","name":"setFeeOverride(address,uint24)"},{"selector":"0x2d398609","name":null},{"selector":"0x38759da4","name":"gasThreshold()"},{"selector":"0x38b90333","name":"CONTRACT_VERSION()"},{"selector":"0x3b01d64d","name":"OVERRIDE_FEE_FLAG()"},{"selector":"0x3b9d33f0","name":null},{"selector":"0x3c4f4b8e","name":null},{"selector":"0x3fc48eba","name":"MAX_LP_FEE()"},{"selector":"0x4000072e","name":"setPoolEnabled(bytes32,bool)"},{"selector":"0x4054681c","name":null},{"selector":"0x40bba228","name":null},{"selector":"0x41d1e9b1","name":null},{"selector":"0x4697f05d","name":"setAllowed(address,bool)"},{"selector":"0x46fa9e23","name":"allowedAddresses()"},{"selector":"0x4eba8678","name":"feeConfigVersion()"},{"selector":"0x53e579bf","name":"poolId((address,address,uint24,int24,address))"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x59926663","name":null},{"selector":"0x5a6c72d0","name":"defaultFee()"},{"selector":"0x5c975abb","name":"paused()"},{"selector":"0x5fbbc0d2","name":"getFeeConfig()"},{"selector":"0x63e094ad","name":"getFeeOverride(address)"},{"selector":"0x68f0a1d9","name":"GAS_BUFFER_BPS()"},{"selector":"0x6c2bbe7e","name":"afterRemoveLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0x6fe7e6eb","name":"afterInitialize(address,(address,address,uint24,int24,address),uint160,int24)"},{"selector":"0x79fee53d","name":null},{"selector":"0x8da5cb5b","name":"owner()"},{"selector":"0x94168af8","name":"swapCount(bytes32)"},{"selector":"0x9789ae80","name":"isPoolRegistered(bytes32)"},{"selector":"0x9a50c628","name":"tierOneFee()"},{"selector":"0x9d951b3b","name":"tierThreeFee()"},{"selector":"0x9f063efc","name":"afterAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0x9f43c63f","name":"clearFeeOverride(address)"},{"selector":"0xa186e9ff","name":null},{"selector":"0xa3f4bac7","name":"ALL_HOOK_MASK()"},{"selector":"0xac4e4054","name":"REQUIRED_HOOK_FLAGS()"},{"selector":"0xacb6e574","name":null},{"selector":"0xaccb0d91","name":null},{"selector":"0xaf7d96ec","name":null},{"selector":"0xb38efaf1","name":"registeredPoolCount()"},{"selector":"0xb40d4551","name":null},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xb6a8b0fa","name":"beforeDonate(address,(address,address,uint24,int24,address),uint256,uint256,bytes)"},{"selector":"0xb7154f76","name":null},{"selector":"0xbabcc539","name":"isAllowed(address)"},{"selector":"0xc4e833ce","name":"getHookPermissions()"},{"selector":"0xc5117d93","name":null},{"selector":"0xcb3b3ab3","name":"setGasThreshold(uint256)"},{"selector":"0xce031cd7","name":null},{"selector":"0xce07d308","name":"registerPool((address,address,uint24,int24,address))"},{"selector":"0xce6f4cf8","name":"DEFAULT_GAS_THRESHOLD()"},{"selector":"0xcf2b0cac","name":null},{"selector":"0xd595408a","name":"getPoolState(bytes32)"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xded04a67","name":"registeredPoolAt(uint256)"},{"selector":"0xe0b01bac","name":"poolState(bytes32)"},{"selector":"0xe1a45218","name":"BPS_DENOMINATOR()"},{"selector":"0xe1b4af69","name":"afterDonate(address,(address,address,uint24,int24,address),uint256,uint256,bytes)"},{"selector":"0xf26ef49d","name":"DYNAMIC_FEE_FLAG()"},{"selector":"0xf3e05870","name":null}],"history":{"pools":55,"firstTime":1787843132,"lastTime":1787915253},"pools":[{"id":"0x4b4a085492429453f4c474c8e2d4e456775ec7cf3946567da5efcc8456466f71","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0x6eBeBfbf4586eCedcB3A97306df2f196C28E9dD5","fee":8388608,"tickSpacing":5,"hooks":"0xe37A0B7c7b702251E85587De2245FC78C5bD0880"},"symbols":["ETH","COPPERINU"],"state":{"sqrtP":"171908859964697871583150887915298","tick":153655,"protocolFee":0,"lpFee":0,"liquidity":"0"},"swaps":[{"zeroForOne":true,"ok":false,"why":"thin","reason":"no liquidity at the current price"},{"zeroForOne":false,"ok":false,"why":"thin","reason":"no liquidity at the current price"}],"roundTrip":{"ok":false,"stage":"add","reason":"error 0xd2be47e1"}}],"openCallbacks":[],"checks":[{"id":"01","title":"Permissions that touch your money","status":"pass","detail":"None of the permissions that let a hook take from swaps or from LPs are switched on."},{"id":"02","title":"What it takes from a swap","status":"n/a","detail":"No pool with liquidity to swap through yet."},{"id":"03","title":"LPs can get out","status":"n/a","detail":"Closed to outside LPs: only the hook's own liquidity is in the pool."},{"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":"Owned by 0xEFC1CA712e8F78Cf1B097Cb2DACe809A017132F3. Owner-style functions: setPaused, setFeeOverride, setPoolEnabled, setAllowed, paused, setGasThreshold."},{"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":"55 pools over 53 days."}],"score":83,"verdict":"caution"}