{"hook":"0x18C365ef4d021518106109414cF3506CBfee28cC","block":93210859,"bits":10444,"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":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":17542,"selectors":["0x03fd2a45","0x0cfb82c0","0x1f0a3773","0x21d0ee70","0x259982e5","0x28ff1d4c","0x45904567","0x46ca626b","0x497777d5","0x5313be2c","0x558a7297","0x55d73d6a","0x575e24b4","0x5e3f2727","0x62308e85","0x6c2bbe7e","0x6d70f7ae","0x6fe7e6eb","0x715018a6","0x79ba5097","0x85ec9bd9","0x8652edf9","0x8da5cb5b","0x91dd7346","0x988b1fa7","0x98aab22e","0x9f063efc","0xad8922b5","0xb47b2fb1","0xb6a8b0fa","0xbc234eb7","0xbf333f2c","0xc502ccb4","0xcf3cf573","0xd92e82e4","0xdc98354e","0xe138818c","0xe1b4af69","0xe30c3978","0xe81fa841","0xf2fde38b","0x06fdde03","0x095ea7b3","0x18160ddd","0x23b872dd","0x313ce567","0x70a08231","0x95d89b41","0xa9059cbb","0xc50497ae","0xdd62ed3e"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":15,"addresses":["0xfFfd8963EFd1fC6A506488495d951d5263988d25"]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":"0x7d69d39542a9EaB2BB408E7A7dEd4bd9AdD4cB32","functions":[{"selector":"0x03fd2a45","name":"DEAD()"},{"selector":"0x0cfb82c0","name":"MAX_START_TICK()"},{"selector":"0x1f0a3773","name":"studioCount()"},{"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":"0x28ff1d4c","name":"MAX_LAUNCH_FEE()"},{"selector":"0x45904567","name":"CREATOR_BPS()"},{"selector":"0x46ca626b","name":"TICK_SPACING()"},{"selector":"0x497777d5","name":"collect(bytes32)"},{"selector":"0x5313be2c","name":"setLaunchFee(uint256)"},{"selector":"0x558a7297","name":"setOperator(address,bool)"},{"selector":"0x55d73d6a","name":"launch(string,string,uint256,bytes32)"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x5e3f2727","name":"LP_FEE()"},{"selector":"0x62308e85","name":"POOL_MANAGER()"},{"selector":"0x6c2bbe7e","name":"afterRemoveLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0x6d70f7ae","name":"isOperator(address)"},{"selector":"0x6fe7e6eb","name":"afterInitialize(address,(address,address,uint24,int24,address),uint160,int24)"},{"selector":"0x715018a6","name":"renounceOwnership()"},{"selector":"0x79ba5097","name":"acceptOwnership()"},{"selector":"0x85ec9bd9","name":"setCreator(bytes32,address)"},{"selector":"0x8652edf9","name":"poolKeyOf(address)"},{"selector":"0x8da5cb5b","name":"owner()"},{"selector":"0x91dd7346","name":"unlockCallback(bytes)"},{"selector":"0x988b1fa7","name":"poolOf(address)"},{"selector":"0x98aab22e","name":"startTick()"},{"selector":"0x9f063efc","name":"afterAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0xad8922b5","name":"studio(bytes32)"},{"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":"0xbc234eb7","name":"hookPermissions()"},{"selector":"0xbf333f2c","name":"FEE_BPS()"},{"selector":"0xc502ccb4","name":"setStartTick(int24)"},{"selector":"0xcf3cf573","name":"launchFee()"},{"selector":"0xd92e82e4","name":"CONFIG()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xe138818c","name":"platformTreasury()"},{"selector":"0xe1b4af69","name":"afterDonate(address,(address,address,uint24,int24,address),uint256,uint256,bytes)"},{"selector":"0xe30c3978","name":"pendingOwner()"},{"selector":"0xe81fa841","name":"TREASURY_IMPL()"},{"selector":"0xf2fde38b","name":"transferOwnership(address)"},{"selector":"0x06fdde03","name":"name()"},{"selector":"0x095ea7b3","name":"approve(address,uint256)"},{"selector":"0x18160ddd","name":"totalSupply()"},{"selector":"0x23b872dd","name":"transferFrom(address,address,uint256)"},{"selector":"0x313ce567","name":"decimals()"},{"selector":"0x70a08231","name":"balanceOf(address)"},{"selector":"0x95d89b41","name":"symbol()"},{"selector":"0xa9059cbb","name":"transfer(address,uint256)"},{"selector":"0xc50497ae","name":"SUPPLY()"},{"selector":"0xdd62ed3e","name":"allowance(address,address)"}],"history":{"pools":6,"firstTime":1791397821,"lastTime":1791570988},"pools":[{"id":"0x0c379b38f44260f1d77948ab9be7f9dc47aabb3b1701ad0f5b6ccee35c0ea705","key":{"currency0":"0x237C6Ef731939b60af0e8090E495eBb4665C1E18","currency1":"0x5e1bDC6E64C80d69D88E52535888E9BF3a5993Ea","fee":0,"tickSpacing":200,"hooks":"0x18C365ef4d021518106109414cF3506CBfee28cC"},"symbols":["WHS","GRASS"],"state":{"sqrtP":"250203410244913301333467921817","tick":22999,"protocolFee":0,"lpFee":0,"liquidity":"316654975302989662604687777"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"50135191642068496582383","paid":"50135191642068496582383","got":"494755047378691580691165","expected":"499750075595680980745586","feePpm":0,"takePpm":9996},{"zeroForOne":false,"ok":true,"amountIn":"24683228925312419856","paid":"24683228925312419856","got":"2450247038221197494","expected":"2474997008304239892","feePpm":0,"takePpm":10000}],"roundTrip":{"ok":false,"stage":"add","reason":"HookNotAllowed"}},{"id":"0xa22b40597d8599064f03697bcab87600976d399dced39312ea15eb8095bd1365","key":{"currency0":"0x237C6Ef731939b60af0e8090E495eBb4665C1E18","currency1":"0x3AbAA19165EBD14759a311af0950013886AD4522","fee":0,"tickSpacing":200,"hooks":"0x18C365ef4d021518106109414cF3506CBfee28cC"},"symbols":["WHS","AXIE"],"state":{"sqrtP":"250203422596585861949227360170","tick":22999,"protocolFee":0,"lpFee":0,"liquidity":"316654975302989662604687777"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"50135189167068496582383","paid":"50135189167068496582383","got":"494755071803028311160546","expected":"499750100266604889650692","feePpm":0,"takePpm":9996},{"zeroForOne":false,"ok":true,"amountIn":"12341599239882640697","paid":"12341599239882640697","got":"1225121902141062398","expected":"1237496870849557977","feePpm":0,"takePpm":10000}],"roundTrip":{"ok":false,"stage":"add","reason":"HookNotAllowed"}}],"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":"pass","detail":"It takes 1% on top of the pool fee."},{"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":"pass","detail":"A fixed fee of 0%, written in the pool key."},{"id":"05","title":"No one holds the switch","status":"caution","detail":"Owned by 0x7d69d39542a9EaB2BB408E7A7dEd4bd9AdD4cB32. Owner-style functions: collect, setLaunchFee, setOperator, setCreator, setStartTick, transferOwnership."},{"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":"6 pools over 12 days."}],"score":85,"verdict":"caution"}