{"hook":"0x10f17E4feB36c40131E4e18F9d882e9f318330c4","block":93297045,"bits":12484,"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":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":27484,"selectors":["0x03f91242","0x048ba7fc","0x0ce01beb","0x150bb27b","0x15a0ea6a","0x16e936a1","0x21d0ee70","0x246dada2","0x259982e5","0x28079e4a","0x2e6410b3","0x33426106","0x397d5bf0","0x3f164d0a","0x406e8ca7","0x452a9320","0x48065cde","0x4d7f0ddd","0x575e24b4","0x5a5c382b","0x673debf2","0x6b745027","0x6c2bbe7e","0x6fe7e6eb","0x7b103999","0x7ea9f9cf","0x8955f875","0x9b6e2721","0x9f063efc","0xaa59fc76","0xabe4b45b","0xae463a0b","0xb02bb8a6","0xb47b2fb1","0xb5af6caa","0xb6a8b0fa","0xbae667bc","0xc1e8e04d","0xc45a0155","0xc4e833ce","0xc688034a","0xcc718f76","0xd03bef52","0xd92a8331","0xdc4c90d3","0xdc98354e","0xdf76eb2a"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":7,"addresses":[]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0x03f91242","name":null},{"selector":"0x048ba7fc","name":"oracle(bytes32)"},{"selector":"0x0ce01beb","name":null},{"selector":"0x150bb27b","name":null},{"selector":"0x15a0ea6a","name":"claimFees(address)"},{"selector":"0x16e936a1","name":null},{"selector":"0x21d0ee70","name":"beforeRemoveLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),bytes)"},{"selector":"0x246dada2","name":"setCreatorPayout(bytes32,address)"},{"selector":"0x259982e5","name":"beforeAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),bytes)"},{"selector":"0x28079e4a","name":"owed(address,address)"},{"selector":"0x2e6410b3","name":null},{"selector":"0x33426106","name":null},{"selector":"0x397d5bf0","name":"guardianExpiresAt()"},{"selector":"0x3f164d0a","name":null},{"selector":"0x406e8ca7","name":null},{"selector":"0x452a9320","name":"guardian()"},{"selector":"0x48065cde","name":null},{"selector":"0x4d7f0ddd","name":null},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x5a5c382b","name":null},{"selector":"0x673debf2","name":"payBounty(bytes32,address)"},{"selector":"0x6b745027","name":null},{"selector":"0x6c2bbe7e","name":"afterRemoveLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0x6fe7e6eb","name":"afterInitialize(address,(address,address,uint24,int24,address),uint160,int24)"},{"selector":"0x7b103999","name":"registry()"},{"selector":"0x7ea9f9cf","name":null},{"selector":"0x8955f875","name":"quoteFee(bytes32,bool,uint256)"},{"selector":"0x9b6e2721","name":null},{"selector":"0x9f063efc","name":"afterAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0xaa59fc76","name":null},{"selector":"0xabe4b45b","name":"accrued(bytes32,address)"},{"selector":"0xae463a0b","name":"setFee(bytes32,uint24)"},{"selector":"0xb02bb8a6","name":null},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xb5af6caa","name":"poolKeyOf(bytes32)"},{"selector":"0xb6a8b0fa","name":"beforeDonate(address,(address,address,uint24,int24,address),uint256,uint256,bytes)"},{"selector":"0xbae667bc","name":"tokenOf(bytes32)"},{"selector":"0xc1e8e04d","name":null},{"selector":"0xc45a0155","name":null},{"selector":"0xc4e833ce","name":"getHookPermissions()"},{"selector":"0xc688034a","name":"_setIsWalletToProtect(address)"},{"selector":"0xcc718f76","name":"config(bytes32)"},{"selector":"0xd03bef52","name":null},{"selector":"0xd92a8331","name":null},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xdf76eb2a","name":null}],"history":{"pools":5,"firstTime":1791589489,"lastTime":1791596026},"pools":[{"id":"0x2cae51a70b1e2a0c0bd5f1fa25d277b947ecb5bcc9be4d15d558b5824fdcc0f9","key":{"currency0":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","currency1":"0xF18b367E1fEBE408964c068713b129a48E27CDB6","fee":8388608,"tickSpacing":60,"hooks":"0x10f17E4feB36c40131E4e18F9d882e9f318330c4"},"symbols":["USDG","TEST2"],"state":{"sqrtP":"35324589108066015079124408364107110459","tick":398330,"protocolFee":0,"lpFee":0,"liquidity":"2241760782196393589"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"2513979","paid":"2513979","got":"492012179270325166655759","expected":"499504750528248900158130","feePpm":0,"takePpm":15000},{"zeroForOne":false,"ok":true,"amountIn":"122696283721338766044701","paid":"122696283721338766044701","got":"607882","expected":"617139","feePpm":0,"takePpm":15000}],"roundTrip":{"ok":true,"lossPpm":67,"added":["-15099","-3196905894037022150689"],"removed":["15098","3196905894037022150688"]}}],"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 1.50% 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":"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":"No owner() but it has claimFees, setCreatorPayout, setFee."},{"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":"5 pools over 10 days."}],"score":73,"verdict":"caution"}