{"hook":"0x7D4963d6ADFD22350e1556c6b43897BcbFaad0c4","block":93527130,"bits":4292,"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":true},{"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":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":8491,"selectors":["0x03a9f06e","0x08b66372","0x1fd46977","0x2d2c5565","0x47473b00","0x55818aca","0x575e24b4","0x62308e85","0x6fe7e6eb","0x79feb107","0xa5d3ec36","0xb47b2fb1","0xbcb3e709","0xbec92898","0xbf333f2c","0xcdb5661f","0xead68f82","0xf399150c"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":5,"addresses":[]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0x03a9f06e","name":"claimPending()"},{"selector":"0x08b66372","name":"HOOK_FLAGS()"},{"selector":"0x1fd46977","name":null},{"selector":"0x2d2c5565","name":"TREASURY()"},{"selector":"0x47473b00","name":"consult(bytes32,uint32)"},{"selector":"0x55818aca","name":null},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x62308e85","name":"POOL_MANAGER()"},{"selector":"0x6fe7e6eb","name":"afterInitialize(address,(address,address,uint24,int24,address),uint160,int24)"},{"selector":"0x79feb107","name":"latest(bytes32)"},{"selector":"0xa5d3ec36","name":null},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xbcb3e709","name":"checkpointCount(bytes32)"},{"selector":"0xbec92898","name":"pendingNative(address)"},{"selector":"0xbf333f2c","name":"FEE_BPS()"},{"selector":"0xcdb5661f","name":"fees(bytes32)"},{"selector":"0xead68f82","name":"CHECKPOINT_INTERVAL()"},{"selector":"0xf399150c","name":"collectFees((address,address,uint24,int24,address))"}],"history":{"pools":3,"firstTime":1791979525,"lastTime":1791980561},"pools":[{"id":"0x5deb50dff193e1bc1ad555c3f13a8b8a8e104508844bcea83d2a25480829fd6c","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0x0Bf5d076b7083711F48eD594d55766001953B369","fee":0,"tickSpacing":200,"hooks":"0x7D4963d6ADFD22350e1556c6b43897BcbFaad0c4"},"symbols":["ETH","EGGINU"],"state":{"sqrtP":"866185961884226718448744480727879","tick":185999,"protocolFee":0,"lpFee":0,"liquidity":"91466750796188452668956"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"4183133250606020","paid":"4183133250606020","got":"494746710027341732945480","expected":"499744151542769427217656","feePpm":0,"takePpm":10000},{"zeroForOne":false,"ok":true,"amountIn":"2988190473541285373971","paid":"2988190473541285373971","got":"24750219754587","expected":"25000221974330","feePpm":0,"takePpm":10000}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-24734540962700","-3919668663205454955080"],"removed":["24734540962699","3919668663205454955079"]}},{"id":"0xf972d64844a81301d12d31d5cc3e891414eea9a5e36beb146e70e277fc76c0db","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0x9168Ea3791C53C03b8454837e1281f43Cf17F0dE","fee":0,"tickSpacing":200,"hooks":"0x7D4963d6ADFD22350e1556c6b43897BcbFaad0c4"},"symbols":["ETH","RUNICORN"],"state":{"sqrtP":"2735131732418084965241893212641864","tick":208997,"protocolFee":0,"lpFee":0,"liquidity":"28963401714411764537962"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"419489319435195","paid":"419489319435195","got":"494693652863302027864664","expected":"499690558447779826125923","feePpm":0,"takePpm":10000},{"zeroForOne":false,"ok":true,"amountIn":"29798136210326391194152","paid":"29798136210326391194152","got":"24752212470452","expected":"25002234818638","feePpm":0,"takePpm":10000}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-2489138954082","-3908944684898065192034"],"removed":["2489138954081","3908944684898065192033"]}}],"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":"pass","detail":"It takes 1% 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 claimPending, collectFees."},{"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":"caution","detail":"3 pools, first seen 6 days ago."}],"score":85,"verdict":"caution"}