{"hook":"0xaF59944A7d03B914567cb0272b7E588A7aE7AAC4","block":93004069,"bits":10948,"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":true},{"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":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":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":22836,"selectors":["0xf2fde38b","0xfa227e92","0xff798040","0xe30c3978","0xed8ef7a3","0xd7e9ec04","0xdc98354e","0xdd1b9c4a","0xc4e833ce","0xcb850eb6","0x91dd7346","0xb47b2fb1","0xb4ba9e11","0x8da5cb5b","0x8f15ae9b","0x715018a6","0x79ba5097","0x7da3dafe","0x81fbf4e6","0x64482ac4","0x65d7b483","0x6ef61607","0x5e4807f2","0x62308e85","0x5315769b","0x53b0b154","0x575e24b4","0x488a1cf7","0x4ce1c4a2","0x28079e4a","0x46ca626b","0x4836a796","0x21d0ee70","0x259982e5","0x05ca6842","0x19692f89","0x1b7fd565","0x1e83409a"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":4,"addresses":["0xfFfD8963eFD1FC6A506488495D951d5263988d26","0xFFFD8963efd1FC6a506488495d951D5163961682"]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":"0x2F8decA0ceEe010da1bEFB8EAebCf9caBc96145e","functions":[{"selector":"0xf2fde38b","name":"transferOwnership(address)"},{"selector":"0xfa227e92","name":"recordContribution(bytes32,uint256)"},{"selector":"0xff798040","name":"planOf(bytes32)"},{"selector":"0xe30c3978","name":"pendingOwner()"},{"selector":"0xed8ef7a3","name":"setCreatorFeeRecipient(bytes32,address)"},{"selector":"0xd7e9ec04","name":"totalOwed(address)"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xdd1b9c4a","name":"POOL_FEE()"},{"selector":"0xc4e833ce","name":"getHookPermissions()"},{"selector":"0xcb850eb6","name":"planFor(address,address,uint256,uint256,uint256)"},{"selector":"0x91dd7346","name":"unlockCallback(bytes)"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xb4ba9e11","name":"claimFor(address,address)"},{"selector":"0x8da5cb5b","name":"owner()"},{"selector":"0x8f15ae9b","name":"poolKeyFor(address,address)"},{"selector":"0x715018a6","name":"renounceOwnership()"},{"selector":"0x79ba5097","name":"acceptOwnership()"},{"selector":"0x7da3dafe","name":"snipeTaxBps(bytes32)"},{"selector":"0x81fbf4e6","name":"allowedLaunchpad(address)"},{"selector":"0x64482ac4","name":"stateOf(bytes32)"},{"selector":"0x65d7b483","name":"poolIdOfToken(address)"},{"selector":"0x6ef61607","name":"configOf(bytes32)"},{"selector":"0x5e4807f2","name":"BURN_SINK()"},{"selector":"0x62308e85","name":"POOL_MANAGER()"},{"selector":"0x5315769b","name":"graduationReady(bytes32)"},{"selector":"0x53b0b154","name":"snipeExempt(bytes32,address)"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x488a1cf7","name":"register((address,address,address,address,address,uint256,uint256,uint256,uint96,uint96,uint96,uint96,uint64,address[]))"},{"selector":"0x4ce1c4a2","name":"graduationQuote(bytes32)"},{"selector":"0x28079e4a","name":"owed(address,address)"},{"selector":"0x46ca626b","name":"TICK_SPACING()"},{"selector":"0x4836a796","name":"setLaunchpad(address,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":"0x05ca6842","name":"realQuote(bytes32)"},{"selector":"0x19692f89","name":"graduate(bytes32)"},{"selector":"0x1b7fd565","name":"treasury(bytes32)"},{"selector":"0x1e83409a","name":"claim(address)"}],"history":{"pools":20,"firstTime":1788895404,"lastTime":1790856949},"pools":[{"id":"0x4500d63de18936d3b3943df10081336b109bc2e3b2d112b2b810adc6135b1e61","key":{"currency0":"0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73","currency1":"0xC04604709825f1a163238B66f6621986325AA26f","fee":0,"tickSpacing":200,"hooks":"0xaF59944A7d03B914567cb0272b7E588A7aE7AAC4"},"symbols":["WETH","PUDGE"],"state":{"sqrtP":"2070108808056208866802169049417242","tick":203425,"protocolFee":0,"lpFee":0,"liquidity":"23316658080771603582748"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"287616349949774","paid":"287616349949774","got":"194328273995104524264488","expected":"196291185853640933600492","feePpm":0,"takePpm":10000},{"zeroForOne":false,"ok":true,"amountIn":"304614026980305395244480","paid":"304614026980305395244480","got":"441510280648332","expected":"445969980452860","feePpm":0,"takePpm":10000}],"roundTrip":{"ok":false,"stage":"add","reason":"NotLocker"}},{"id":"0xd0e2925c1b8980ba3386dfd0466a94bff87f44a81c7a938c5623fd6927c95a29","key":{"currency0":"0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73","currency1":"0x4af8F327440C022F6D1fd7802949e450e980CFE7","fee":0,"tickSpacing":200,"hooks":"0xaF59944A7d03B914567cb0272b7E588A7aE7AAC4"},"symbols":["WETH","SILVER"],"state":{"sqrtP":"2106234333159799267654841609696258","tick":203771,"protocolFee":0,"lpFee":0,"liquidity":"23316658080771603582748"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"438539992115101","paid":"438539992115101","got":"306677217493528401485696","expected":"309774967165180203520905","feePpm":0,"takePpm":10000},{"zeroForOne":false,"ok":true,"amountIn":"218673608548623700547538","paid":"218673608548623700547538","got":"306213388372186","expected":"309306452901197","feePpm":0,"takePpm":10000}],"roundTrip":{"ok":false,"stage":"add","reason":"NotLocker"}}],"openCallbacks":[],"checks":[{"id":"01","title":"Permissions that touch your money","status":"caution","detail":"The address enables before remove liquidity, 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 0x2F8decA0ceEe010da1bEFB8EAebCf9caBc96145e. Owner-style functions: transferOwnership, setCreatorFeeRecipient, claimFor, BURN_SINK, setLaunchpad, claim."},{"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":"20 pools over 41 days."}],"score":85,"verdict":"caution"}