{"hook":"0x62DA50D5e9f90791820391AB3B9994532d4eC0cc","block":93239866,"bits":204,"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":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":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":6728,"selectors":["0x3659cfe6","0x478222c2","0x4f1ef286","0x52d1902d","0x575e24b4","0x715018a6","0x826650a3","0x8da5cb5b","0xb47b2fb1","0xc9d4623f","0xdc4c90d3","0xf1e6c748","0xf2fde38b","0xf8c8765e","0xfa02716d"],"delegatecall":true,"selfdestruct":false,"create":false,"calls":5,"addresses":["0x696E76616C696420686F6f6B2061646472657373"]},"proxy":{"implementation":"0x85e05D619F0C43D270a7eD95579c417e377514Fd","admin":null,"beacon":null,"clone":false},"owner":"0xE229462E2445D8093D5BE252e7f51386F1655409","functions":[{"selector":"0x3659cfe6","name":"upgradeTo(address)"},{"selector":"0x478222c2","name":"feeVault()"},{"selector":"0x4f1ef286","name":"upgradeToAndCall(address,bytes)"},{"selector":"0x52d1902d","name":"proxiableUUID()"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x715018a6","name":"renounceOwnership()"},{"selector":"0x826650a3","name":"projectOfPool(bytes32)"},{"selector":"0x8da5cb5b","name":"owner()"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xc9d4623f","name":"engine()"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xf1e6c748","name":null},{"selector":"0xf2fde38b","name":"transferOwnership(address)"},{"selector":"0xf8c8765e","name":"initialize(address,address,address,address)"},{"selector":"0xfa02716d","name":"registerPool((address,address,uint24,int24,address),address)"}],"history":{"pools":5,"firstTime":1788924872,"lastTime":1789118604},"pools":[{"id":"0x0920b10404a0e53b1de1df249638e7267afbd4e6b7639826ab57a726868750fa","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0xE797045B4D6B62C2fFFBEc8DF678b75D1ca189f8","fee":0,"tickSpacing":200,"hooks":"0x62DA50D5e9f90791820391AB3B9994532d4eC0cc"},"symbols":["ETH","NATIVE_1"],"state":{"sqrtP":"3881723909489308868341271419570465","tick":215999,"protocolFee":0,"lpFee":0,"liquidity":"25510081099608547222068"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"260337532786786","paid":"260337532786786","got":"618365148048866105257022","expected":"624611260655420308340426","feePpm":0,"takePpm":10000},{"zeroForOne":false,"ok":true,"amountIn":"605994499905881136020","paid":"605994499905881136020","got":"249927214393","expected":"252451731710","feePpm":0,"takePpm":10000}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-1538849584066","-4900247658128794439090"],"removed":["1538849584065","4900247658128794439089"]}},{"id":"0xf48caebb8bb008742dd1a623b7ff78ddb3e05d0f9222061551ccad0de6592cc7","key":{"currency0":"0xd0601CE157Db5bdC3162BbaC2a2C8aF5320D9EEC","currency1":"0xF599f0F4d8588382970D3472F2CFbD08De96BE64","fee":0,"tickSpacing":200,"hooks":"0x62DA50D5e9f90791820391AB3B9994532d4eC0cc"},"symbols":["NVDA","TTT"],"state":{"sqrtP":"1180928968651167557466900218938473","tick":192199,"protocolFee":0,"lpFee":0,"liquidity":"83848719366709316925829"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"2812692439997593","paid":"2812692439997593","got":"618341980044531823468397","expected":"624587858630840225725653","feePpm":0,"takePpm":10000},{"zeroForOne":false,"ok":true,"amountIn":"12312857337099224072776","paid":"12312857337099224072776","got":"54865757388237","expected":"55419956957815","feePpm":0,"takePpm":10000}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-16646218272708","-4895564913010306724278"],"removed":["16646218272707","4895564913010306724277"]}}],"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":"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":"Owned by 0xE229462E2445D8093D5BE252e7f51386F1655409. Owner-style functions: upgradeTo, upgradeToAndCall, transferOwnership."},{"id":"06","title":"The code cannot change","status":"fail","detail":"It is a proxy. The code that runs lives at 0x85e05D619F0C43D270a7eD95579c417e377514Fd."},{"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":"5 pools over 41 days."}],"score":73,"verdict":"danger"}