{"hook":"0xC15b155a3094934171A15625d1a80Aba267B6080","block":93530436,"bits":8320,"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":false},{"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":false},{"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":14352,"selectors":["0xf2fde38b","0xf43d504e","0xfc3ab60d","0xff8f9c15","0xdec7f16c","0xe30c3978","0xecd8e907","0xc5817691","0xd4166763","0xdc4c90d3","0xdc98354e","0xb6a96e76","0xbc063e1a","0xbeba1fbf","0xad51bdf3","0xb3ab15fb","0xb4f2396c","0xb5217bb4","0xa33920af","0xa621385e","0xa8993018","0x8ebfc796","0x94733af5","0x9b610aa2","0x89820e98","0x8da5cb5b","0x8ea9db9e","0x77232597","0x79ba5097","0x7d170c6d","0x897891ba","0x68077043","0x697a80b7","0x715018a6","0x570ca735","0x575e24b4","0x58cba3de","0x427192e5","0x50f6c7b0","0x564575af","0x3410396d","0x39721dbe","0x398daa85","0x3bbd5a8b","0x2cc72980","0x2f640e3e","0x33fada9a","0x19828b14","0x230f2c3b","0x2a820084","0x0d9c2443","0x10e4edcb","0x12482ef0"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":0,"addresses":[]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":"0xb1748f1857bef8De020982aA33f6F9cC1b9aD3c1","functions":[{"selector":"0xf2fde38b","name":"transferOwnership(address)"},{"selector":"0xf43d504e","name":"clearFeeOverride(bytes32)"},{"selector":"0xfc3ab60d","name":"sessionTimes()"},{"selector":"0xff8f9c15","name":"feeFor(bytes32,address,uint256)"},{"selector":"0xdec7f16c","name":"setHolidays(uint32[],bool)"},{"selector":"0xe30c3978","name":"pendingOwner()"},{"selector":"0xecd8e907","name":"sessionAt(uint256)"},{"selector":"0xc5817691","name":"utcOffset(uint256)"},{"selector":"0xd4166763","name":"currentSession()"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xb6a96e76","name":"setDstMode(uint8)"},{"selector":"0xbc063e1a","name":"MAX_FEE()"},{"selector":"0xbeba1fbf","name":"setSessionTimes((uint16,uint16,uint16,uint16))"},{"selector":"0xad51bdf3","name":"localDay(uint256)"},{"selector":"0xb3ab15fb","name":"setOperator(address)"},{"selector":"0xb4f2396c","name":"setFeeOverride(bytes32,uint24,uint64)"},{"selector":"0xb5217bb4","name":"pools(bytes32)"},{"selector":"0xa33920af","name":"initializer(address)"},{"selector":"0xa621385e","name":"sessionStart(uint256)"},{"selector":"0xa8993018","name":"setPoolClass(bytes32,uint8)"},{"selector":"0x8ebfc796","name":"setFeeExempt(address,bool)"},{"selector":"0x94733af5","name":"allResumedAt()"},{"selector":"0x9b610aa2","name":"dstMode()"},{"selector":"0x89820e98","name":"setAllPaused(bool)"},{"selector":"0x8da5cb5b","name":"owner()"},{"selector":"0x8ea9db9e","name":"setPaused(bytes32,bool)"},{"selector":"0x77232597","name":"addClosure(uint64,uint64)"},{"selector":"0x79ba5097","name":"acceptOwnership()"},{"selector":"0x7d170c6d","name":"classFees(uint8)"},{"selector":"0x897891ba","name":"setClassFees(uint8,uint24[4])"},{"selector":"0x68077043","name":"setOpenRamp(uint16)"},{"selector":"0x697a80b7","name":"allPaused()"},{"selector":"0x715018a6","name":"renounceOwnership()"},{"selector":"0x570ca735","name":"operator()"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x58cba3de","name":"clearGlobalFeeOverride()"},{"selector":"0x427192e5","name":"holiday(uint32)"},{"selector":"0x50f6c7b0","name":"MAX_OPEN_RAMP()"},{"selector":"0x564575af","name":"MAX_CLOSURE_DURATION()"},{"selector":"0x3410396d","name":"setWeeklyClosure((uint8,uint16,uint8,uint16))"},{"selector":"0x39721dbe","name":"setGlobalFeeOverride(uint24,uint64)"},{"selector":"0x398daa85","name":"feeExempt(address)"},{"selector":"0x3bbd5a8b","name":"closures()"},{"selector":"0x2cc72980","name":"setInitializer(address,bool)"},{"selector":"0x2f640e3e","name":"classDefined(uint8)"},{"selector":"0x33fada9a","name":"MAX_OVERRIDE_DURATION()"},{"selector":"0x19828b14","name":"globalOverride()"},{"selector":"0x230f2c3b","name":"weeklyClosure()"},{"selector":"0x2a820084","name":"openRamp()"},{"selector":"0x0d9c2443","name":"MAX_CLOSURES()"},{"selector":"0x10e4edcb","name":"registerPool((address,address,uint24,int24,address),uint8)"},{"selector":"0x12482ef0","name":"removeClosure(uint256)"}],"history":{"pools":3,"firstTime":1791989482,"lastTime":1791989482},"pools":[{"id":"0xfe709115a71c7f9c007f2ac9cb932071ff3b3117865122134e2c1bd96719734c","key":{"currency0":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","currency1":"0xad25Ac6C84D497db898fa1E8387bf6Af3532a1c4","fee":8388608,"tickSpacing":60,"hooks":"0xC15b155a3094934171A15625d1a80Aba267B6080"},"symbols":["USDG","BABA"],"state":{"sqrtP":"7598021275179986453542771165105407","tick":229432,"protocolFee":0,"lpFee":0,"liquidity":"427427420617154671"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"2228493966","paid":"2228493966","got":"20466584215672256599","expected":"20485011524640452788","feePpm":0,"takePpm":900},{"zeroForOne":false,"ok":true,"amountIn":"3688254963355434520","paid":"3688254963355434520","got":"400635114","expected":"400995978","feePpm":0,"takePpm":900}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-13327358","-131627136164622528"],"removed":["13327357","131627136164622527"]}},{"id":"0x742282d7cd423bacc97e7f07121bbd7958d03059f8accfada01a0c5efc903397","key":{"currency0":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","currency1":"0x84CAb63bc87912E71ad199ff14A0bA45de68FeF8","fee":8388608,"tickSpacing":60,"hooks":"0xC15b155a3094934171A15625d1a80Aba267B6080"},"symbols":["USDG","SKHY"],"state":{"sqrtP":"6664870672368188783353038464514223","tick":226811,"protocolFee":0,"lpFee":0,"liquidity":"12297663238622360"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"21797462","paid":"21797462","got":"153781594869554744","expected":"154228794435206546","feePpm":0,"takePpm":2900},{"zeroForOne":false,"ok":true,"amountIn":"517255054621505106","paid":"517255054621505106","got":"72845496","expected":"73057257","feePpm":0,"takePpm":2899}],"roundTrip":{"ok":true,"lossPpm":3,"added":["-466087","-3117130434666354"],"removed":["466086","3117130434666353"]}}],"openCallbacks":[],"checks":[{"id":"01","title":"Permissions that touch your money","status":"pass","detail":"None of the permissions that let a hook take from swaps or from LPs are switched on."},{"id":"02","title":"What it takes from a swap","status":"pass","detail":"It takes 0.29% 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":"caution","detail":"Its pools use a dynamic fee that the hook sets before every swap. It stands at 0% now and can change."},{"id":"05","title":"No one holds the switch","status":"caution","detail":"Owned by 0xb1748f1857bef8De020982aA33f6F9cC1b9aD3c1. Owner-style functions: transferOwnership, setHolidays, setDstMode, setSessionTimes, setOperator, setFeeOverride."},{"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 5 days ago."}],"score":88,"verdict":"caution"}