{"hook":"0x048F2DC8a71A0321B5e119Cd577c56d0190920cc","block":92998365,"bits":8396,"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":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":6474,"selectors":["0xdc98354e","0xde494399","0xe30c3978","0xf2fde38b","0xb47b2fb1","0xb5217bb4","0xdc4c90d3","0x7f0e5c3f","0x89b71c14","0x8da5cb5b","0xb0efd714","0x575e24b4","0x715018a6","0x79ba5097"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":3,"addresses":[]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":"0xb1748f1857bef8De020982aA33f6F9cC1b9aD3c1","functions":[{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xde494399","name":"factoryAllowed(address)"},{"selector":"0xe30c3978","name":"pendingOwner()"},{"selector":"0xf2fde38b","name":"transferOwnership(address)"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xb5217bb4","name":"pools(bytes32)"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0x7f0e5c3f","name":"setFactoryAllowed(address,bool)"},{"selector":"0x89b71c14","name":"curveAuthorized(address)"},{"selector":"0x8da5cb5b","name":"owner()"},{"selector":"0xb0efd714","name":"authorizeCurve(address)"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x715018a6","name":"renounceOwnership()"},{"selector":"0x79ba5097","name":"acceptOwnership()"}],"history":{"pools":21,"firstTime":1791997128,"lastTime":1792172128},"pools":[{"id":"0x0e54d70a6b6658585634e63c390e9a264ebc88e991c78f408422859711fc71a9","key":{"currency0":"0x4a0E65A3EcceC6dBe60AE065F2e7bb85Fae35eEa","currency1":"0x9353AC4DcF13630169E22188894dEB20aBF40E3a","fee":0,"tickSpacing":200,"hooks":"0x048F2DC8a71A0321B5e119Cd577c56d0190920cc"},"symbols":["SPCX","PAYLOAD"],"state":{"sqrtP":"343439501961039961149508804627960","tick":167497,"protocolFee":0,"lpFee":0,"liquidity":"121072591979615258123760"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"13965136419386520","paid":"13965136419386520","got":"259661031735657150673107","expected":"262282559676087508979278","feePpm":0,"takePpm":9996},{"zeroForOne":false,"ok":true,"amountIn":"262413700955925554092945","paid":"262413700955925554092945","got":"13818575767309000","expected":"13958157340716161","feePpm":0,"takePpm":10000}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-96456306786552","-1797590852090561902336"],"removed":["96456306786551","1797590852090561902335"]}},{"id":"0x5bd6662765c3892000e6bdc1427309b53862b76e901e010320a484f8f94b9b53","key":{"currency0":"0x3cEdeb9E2B73ae92C61Aa4Bb5FA27d1CbAb75d65","currency1":"0x4a0E65A3EcceC6dBe60AE065F2e7bb85Fae35eEa","fee":0,"tickSpacing":200,"hooks":"0x048F2DC8a71A0321B5e119Cd577c56d0190920cc"},"symbols":["KING","SPCX"],"state":{"sqrtP":"10513372552531937129859361","tick":-178558,"protocolFee":0,"lpFee":0,"liquidity":"127621717625272876107804"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"480874911159197089178710","paid":"480874911159197089178710","got":"8378671470341759","expected":"8463304515496726","feePpm":0,"takePpm":10000},{"zeroForOne":false,"ok":true,"amountIn":"8467536167754475","paid":"8467536167754475","got":"475830625887790701768123","expected":"480634593862265953481592","feePpm":0,"takePpm":9996}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-3575299547791112326343","-53519580177586"],"removed":["3575299547791112326342","53519580177585"]}}],"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 0xb1748f1857bef8De020982aA33f6F9cC1b9aD3c1. Owner-style functions: transferOwnership, setFactoryAllowed."},{"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":"21 pools, first seen 5 days ago."}],"score":85,"verdict":"caution"}