{"hook":"0x763594aB2f2EdaD4c04a69E57E8bAf1BDc2D6044","block":93209579,"bits":8260,"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":false},{"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":9987,"selectors":["0x9a10c9cb","0x9a295f00","0xaa4cfccd","0xb47b2fb1","0xbc234eb7","0xdc98354e","0x89f69f01","0x8a36a6bb","0x8da5cb5b","0x90addc1e","0x91389945","0x91dd7346","0x388c9805","0x41971958","0x4af5fdcc","0x54faf9c3","0x62308e85","0x738db109","0x073c29b9","0x0885f732","0x121193f0","0x30112530","0x307ab7de","0x359b4f30"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":12,"addresses":["0xfFfD8963eFD1FC6A506488495D951d5263988d26"]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":"0x376244a951aC361f4885bDE59f669C6FcB0ffC21","functions":[{"selector":"0x9a10c9cb","name":"sweepPoolFees(bytes32,address)"},{"selector":"0x9a295f00","name":"MAX_FEE_CONVERSION_IMPACT_BPS()"},{"selector":"0xaa4cfccd","name":"STATE_VIEW()"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xbc234eb7","name":"hookPermissions()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0x89f69f01","name":"HOOK_FEE_BPS()"},{"selector":"0x8a36a6bb","name":"feeSweepOperator()"},{"selector":"0x8da5cb5b","name":"owner()"},{"selector":"0x90addc1e","name":"maxInternalPriceImpactBps()"},{"selector":"0x91389945","name":"pendingProtocolFees(bytes32,address)"},{"selector":"0x91dd7346","name":"unlockCallback(bytes)"},{"selector":"0x388c9805","name":"sweepAndConvert(bytes32,uint256,uint256)"},{"selector":"0x41971958","name":"LIQUIDITY_LOCKER()"},{"selector":"0x4af5fdcc","name":"FEE_CONVERSION_COOLDOWN()"},{"selector":"0x54faf9c3","name":"setFeeSweepOperator(address)"},{"selector":"0x62308e85","name":"POOL_MANAGER()"},{"selector":"0x738db109","name":"conversionSchedule(bytes32)"},{"selector":"0x073c29b9","name":"registerPool((address,address,uint24,int24,address),uint256,address,address,uint256)"},{"selector":"0x0885f732","name":"poolConfig(bytes32)"},{"selector":"0x121193f0","name":"ADAPTER()"},{"selector":"0x30112530","name":"setMaxInternalPriceImpact(uint256)"},{"selector":"0x307ab7de","name":"DEFAULT_MAX_PRICE_IMPACT_BPS()"},{"selector":"0x359b4f30","name":"pendingFees(bytes32,address)"}],"history":{"pools":6,"firstTime":1790700766,"lastTime":1790780075},"pools":[{"id":"0x01f8689f3eae04fdcf1c091d4d14e608354ada5e29d424d560ec80c27b4d5460","key":{"currency0":"0x020bfC650A365f8BB26819deAAbF3E21291018b4","currency1":"0x287814f59e6b294EA6Dcdd6655abB06cd5C18a91","fee":10000,"tickSpacing":200,"hooks":"0x763594aB2f2EdaD4c04a69E57E8bAf1BDc2D6044"},"symbols":["CASHCAT","BCT"],"state":{"sqrtP":"447115135542711057455068424919583","tick":172773,"protocolFee":0,"lpFee":10000,"liquidity":"163178487966126351784818"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"14457497337592585","paid":"14457497337592585","got":"446497513352847604525848","expected":"455609707502905718903926","feePpm":10000,"takePpm":20000},{"zeroForOne":false,"ok":true,"amountIn":"306035833864259049597838","paid":"306035833864259049597838","got":"9319897013018956","expected":"9510098992876484","feePpm":10000,"takePpm":20000}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-89177697950744","-3493027653812580704208"],"removed":["89177697950743","3493027653812580704207"]}},{"id":"0x3d6caff7454d34f184d6ae2211012d838f750c93bdca3ce749d8b6e2d8750398","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0xb66177911BA176e6fa51700D5047d93B9a86719C","fee":10000,"tickSpacing":200,"hooks":"0x763594aB2f2EdaD4c04a69E57E8bAf1BDc2D6044"},"symbols":["ETH","SI"],"state":{"sqrtP":"54817777171632213787291528353204327","tick":268957,"protocolFee":0,"lpFee":10000,"liquidity":"1332346775052982533482"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"962820751457","paid":"962820751457","got":"446967004727925964048191","expected":"456088780334618330661419","feePpm":10000,"takePpm":20000},{"zeroForOne":false,"ok":true,"amountIn":"460923782102403557411858","paid":"460923782102403557411858","got":"933666528134","expected":"952720947074","feePpm":10000,"takePpm":20000}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-6089262728","-3425204255921797936192"],"removed":["6089262727","3425204255921797936191"]}}],"openCallbacks":[],"checks":[{"id":"01","title":"Permissions that touch your money","status":"caution","detail":"The address enables 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":"caution","detail":"It takes 2% 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 1%, written in the pool key."},{"id":"05","title":"No one holds the switch","status":"caution","detail":"Owned by 0x376244a951aC361f4885bDE59f669C6FcB0ffC21. Owner-style functions: sweepPoolFees, sweepAndConvert, setFeeSweepOperator, setMaxInternalPriceImpact."},{"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 20 days."}],"score":75,"verdict":"caution"}