{"hook":"0x2dC6471ff8244C961F9211Da2E7c16808F972a80","block":93428863,"bits":10880,"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":true},{"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":true},{"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":5790,"selectors":["0x01ffc9a7","0x0581aae0","0x0831b9d5","0x21d0ee70","0x248a9ca3","0x259982e5","0x2f2ff15d","0x36568abe","0x575e24b4","0x624d651f","0x680b9e9f","0x775ca736","0x7a997ab7","0x9010d07c","0x91d14854","0xa217fddf","0xa3246ad3","0xb5217bb4","0xca15c873","0xcf76ea35","0xd4a072a9","0xd547741f","0xdc4c90d3","0xdc98354e","0xddab4840","0xe4648c38","0xf7020405"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":1,"addresses":["0xfFfD8963eFD1FC6A506488495D951d5263988d26"]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0x01ffc9a7","name":"supportsInterface(bytes4)"},{"selector":"0x0581aae0","name":null},{"selector":"0x0831b9d5","name":null},{"selector":"0x21d0ee70","name":"beforeRemoveLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),bytes)"},{"selector":"0x248a9ca3","name":"getRoleAdmin(bytes32)"},{"selector":"0x259982e5","name":"beforeAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),bytes)"},{"selector":"0x2f2ff15d","name":"grantRole(bytes32,address)"},{"selector":"0x36568abe","name":"renounceRole(bytes32,address)"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x624d651f","name":null},{"selector":"0x680b9e9f","name":null},{"selector":"0x775ca736","name":"setQuoteOnly(address,bool)"},{"selector":"0x7a997ab7","name":"WHITELIST_ROLE()"},{"selector":"0x9010d07c","name":"getRoleMember(bytes32,uint256)"},{"selector":"0x91d14854","name":"hasRole(bytes32,address)"},{"selector":"0xa217fddf","name":"DEFAULT_ADMIN_ROLE()"},{"selector":"0xa3246ad3","name":"getRoleMembers(bytes32)"},{"selector":"0xb5217bb4","name":"pools(bytes32)"},{"selector":"0xca15c873","name":"getRoleMemberCount(bytes32)"},{"selector":"0xcf76ea35","name":null},{"selector":"0xd4a072a9","name":null},{"selector":"0xd547741f","name":"revokeRole(bytes32,address)"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xddab4840","name":"totalBurnedNVPX()"},{"selector":"0xe4648c38","name":null},{"selector":"0xf7020405","name":"initializePool((address,address,uint24,int24,address),uint160)"}],"history":{"pools":3,"firstTime":1789110653,"lastTime":1789553063},"pools":[{"id":"0xc3f9eae748e0a43ae83789ca16bf86fc04fb554615267b3db1990a88cda5dd1e","key":{"currency0":"0x020bfC650A365f8BB26819deAAbF3E21291018b4","currency1":"0x4B06B8A32734CAa5CA9311b12D9F0Cf952551F16","fee":10000,"tickSpacing":100,"hooks":"0x2dC6471ff8244C961F9211Da2E7c16808F972a80"},"symbols":["CASHCAT","aUSDG"],"state":{"sqrtP":"31292616872360198938721","tick":-294904,"protocolFee":0,"lpFee":10000,"liquidity":"2531848417709514"},"swaps":[{"zeroForOne":true,"ok":false,"why":"blocked","reason":"error 0x0808221e"},{"zeroForOne":false,"ok":false,"why":"blocked","reason":"error 0x0808221e"}],"roundTrip":{"ok":false,"stage":"add","reason":"error 0x2c1e2b8f"}},{"id":"0xc02b0a1106fb861f45b986bbce96879397ca25875cdd6a247d5c4e437a4cf3e2","key":{"currency0":"0x4B06B8A32734CAa5CA9311b12D9F0Cf952551F16","currency1":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","fee":10000,"tickSpacing":100,"hooks":"0x2dC6471ff8244C961F9211Da2E7c16808F972a80"},"symbols":["aUSDG","USDG"],"state":{"sqrtP":"67610091303437917976843589383","tick":-3172,"protocolFee":0,"lpFee":10000,"liquidity":"27043558"},"swaps":[{"zeroForOne":true,"ok":false,"why":"blocked","reason":"error 0x0808221e"},{"zeroForOne":false,"ok":false,"why":"blocked","reason":"error 0x0808221e"}],"roundTrip":{"ok":false,"stage":"add","reason":"error 0x2c1e2b8f"}}],"openCallbacks":[],"checks":[{"id":"01","title":"Permissions that touch your money","status":"caution","detail":"The address enables before remove liquidity. The hook is allowed to take; the next two checks measure whether it does."},{"id":"02","title":"What it takes from a swap","status":"fail","detail":"Every swap through it was refused: error 0x0808221e. Only an approved router may get through."},{"id":"03","title":"LPs can get out","status":"n/a","detail":"Closed to outside LPs: only the hook's own liquidity is in the pool."},{"id":"04","title":"The fee is the fee","status":"pass","detail":"A fixed fee of 1%, written in the pool key."},{"id":"05","title":"No one holds the switch","status":"caution","detail":"No owner() but it has grantRole, setQuoteOnly."},{"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":"3 pools over 39 days."}],"score":56,"verdict":"danger"}