{"address":"0xb51d89bbc50b5ae469be8cfbf305cab6ff3a50cc","chain":"robinhood","chainName":"Robinhood Chain","chains":["robinhood"],"name":"HookeFeeHook","listed":true,"description":"A protocol-fee hook for a single hXMAX/USDG pool that charges a 2%–4% USDG-only fee per swap based on the pool price's deviation from an oracle price. Fees on the specified stablecoin leg are pre-taken in beforeSwap via BeforeSwapDelta; fees on the unspecified leg are taken in afterSwap via AfterSwapReturnsDelta. Also records tick-cumulative observations to serve a TWAP via consultMeanTick.","deployer":"0xb54765c7fB3e2b6917e97E0215025594E31d923B","creationTx":null,"codeBytes":15279,"implementation":null,"verified":true,"audit":null,"upgradeable":false,"swapAccess":"none","dynamicFee":false,"customData":false,"flags":["afterInitialize","beforeSwap","afterSwap","beforeSwapReturnsDelta","afterSwapReturnsDelta"],"flagBits":4300,"lines":[{"key":"afterSwapReturnsDelta","level":"red","text":"Can take a fee from your output","detail":"After the pool fills your swap, the hook can keep part of what you were about to receive."},{"key":"beforeSwapReturnsDelta","level":"red","text":"Can change the price you get","detail":"Before your swap runs, the hook can take or add tokens, so the amount you get is set by its code as well as the pool."},{"key":"beforeSwap","level":"amber","text":"Runs code before your swap and can block it","detail":"The hook is called before every swap. It can revert, which makes your swap fail."},{"key":"afterSwap","level":"amber","text":"Runs code after your swap and can block it","detail":"The hook is called after every swap. It can revert, which undoes your swap."},{"key":"afterInitialize","level":"grey","text":"Runs code after a pool is created","detail":"Called once, right after a pool with this hook is created."}],"score":75,"scoreItems":[{"label":"Can change swap amounts","points":-25}],"pools":1,"activePools":1,"swaps24":142,"swaps7":1383,"volume24Usd":10489,"volume7Usd":146121,"firstSeenBlock":81397442,"firstSeen":1791265800,"ageDays":20.396400462962962,"poolList":[{"id":"0x4be9bdfcff70326169d9a871974f0e15d18d07ce424678c40aaeef295decb1ae","t0":{"a":"0x5fc5360d0400a0fd4f2af552add042d716f1d168","s":"USDG","d":6,"usd":1},"t1":{"a":"0x71796aad4cdff942d3ee8bb1227f779255f89dbc","s":"hXMAX","d":18,"usd":9.702278759128308},"fee":0,"ts":60,"b":81397442,"t":1791265800,"s7":1383,"s24":142,"v7":146121,"u":33}],"daily":{"s":[142,417,337,245,64,56,122],"v":[10489,30798,31194,20330,8755,17638,26917]},"days":7,"probe":{"pool":"0x4be9bdfcff70326169d9a871974f0e15d18d07ce424678c40aaeef295decb1ae","t":1793041402,"dir":[{"zf1":true,"inRaw":"52960627","outRaw":"5238872626354554859","expRaw":"5457211365924862017","takeBps":400,"gas":223233,"reverted":false},{"zf1":false,"inRaw":"5457211417176473895","outRaw":"51900896","expRaw":"52960627","takeBps":200,"gas":182849,"reverted":false}],"lpFee":0,"takeBps":400,"reverted":false,"gas":223233,"pair":"USDG / hXMAX"},"snapshot":{"block":98513114,"ts":1793028049}}