StrayFeeHook
RobinhoodStrayFeeHook is a Uniswap v4 hook on Robinhood Chain. Live for 1 day. Active: 161 trades in the last week, and 1 new pool this week.
- Contract name
- StrayFeeHook
How this hook works
Trading taxA trading tax hook. It takes a tax on trades, charges more right after launch and only takes simple trades.
Takes a tax on trades
On top of the normal pool fee, it keeps part of each trade as a tax. Buys and sells can be charged differently. The tax builds up in the hook until it is collected.
The code that does this (beforeSwap):function beforeSwap( address sender, PoolKey calldata key, IPoolManager.SwapParams calldata params, bytes calldata ) external onlyPoolManager returns (bytes4, BeforeSwapDelta, uint24) { _requireOurPool(key); // amountSpecified < 0 is exact input. See the note on exact output above. if (params.amountSpecified >= 0) revert ExactOutputNotSupported(); // The protocol buying back its own token. `sender` is whoever called // PoolManager.swap, and the buyback calls it from inside its own unlock, so this // is the buyback itself and never somebody routing through it. if (sender == BUYBACK) { return (IHooks.beforeSwap.selector, toBeforeSwapDelta(0, 0), 0); } if (!params.zeroForOne) { // Selling $STRAY: the ETH is on the way out, so afterSwap handles it. return (IHooks.beforeSwap.selector, toBeforeSwapDelta(0, 0), 0); } // A buy is charged BEFORE the swap, on the amount offered, because that is the only // moment the ETH leg can be taxed: on a zeroForOne exact-input swap the unspecified // currency is $STRAY, so afterSwap could only ever take its cut in the wrong token. // // That is sound exactly when the pool consumes the whole offer. A price limit breaks // it: v4 stops the swap the moment the limit is reached and refunds the rest, already // taxed. Measured against the live manager on chain 4663 -- 10 ETH offered, 0.15 ETH // actually swapped, 0.30 ETH taken as the fee. Twice the trade. Inside the launch // …Higher at launch
The tax starts higher right after launch and comes down over time, which makes it costly for bots to buy first.
The code that does this (currentFeeBps):function currentFeeBps(bool buying) public view returns (uint24) { uint24 permanent = buying ? BUY_FEE_BPS : SELL_FEE_BPS; if (!poolBound) return permanent; uint64 elapsed = uint64(block.timestamp) - launchedAt; if (elapsed >= LAUNCH_WINDOW) return permanent; uint256 decay = (uint256(elapsed) * (LAUNCH_START_BPS - F.BUY_FEE_BPS)) / LAUNCH_WINDOW; if (decay >= LAUNCH_START_BPS - permanent) return permanent; return uint24(LAUNCH_START_BPS - decay); }Simple trades only
Trades must state the amount going in, not the amount coming out.
The code that does this (beforeSwap):function beforeSwap( address sender, PoolKey calldata key, IPoolManager.SwapParams calldata params, bytes calldata ) external onlyPoolManager returns (bytes4, BeforeSwapDelta, uint24) { _requireOurPool(key); // amountSpecified < 0 is exact input. See the note on exact output above. if (params.amountSpecified >= 0) revert ExactOutputNotSupported(); // The protocol buying back its own token. `sender` is whoever called // PoolManager.swap, and the buyback calls it from inside its own unlock, so this // is the buyback itself and never somebody routing through it. if (sender == BUYBACK) { return (IHooks.beforeSwap.selector, toBeforeSwapDelta(0, 0), 0); } if (!params.zeroForOne) { // Selling $STRAY: the ETH is on the way out, so afterSwap handles it. return (IHooks.beforeSwap.selector, toBeforeSwapDelta(0, 0), 0); } // A buy is charged BEFORE the swap, on the amount offered, because that is the only // moment the ETH leg can be taxed: on a zeroForOne exact-input swap the unspecified // currency is $STRAY, so afterSwap could only ever take its cut in the wrong token. // // That is sound exactly when the pool consumes the whole offer. A price limit breaks // it: v4 stops the swap the moment the limit is reached and refunds the rest, already // taxed. Measured against the live manager on chain 4663 -- 10 ETH offered, 0.15 ETH // actually swapped, 0.30 ETH taken as the fee. Twice the trade. Inside the launch // …
Who controls it: Nobody. The hook has no admin functions, and the code cannot be changed.
Based on the hook’s published code.What do these labels mean?
Safety report
Before you build on it. Automated checks, not an auditWhat it can do
Its code executes inside each trade in pools that use it.
It can take or add tokens during a swap. Fees, burns and custom curves work this way, and so do scams.
It runs when a pool is created, often to lock in that pool’s settings.
Hook history
- Took its fee from a trade 161 times
Latest transactions
- 0x9089fe66…3249cc block 118,460,284
- 0xf7d3f731…4b5c05 block 118,434,002
- 0xcad4e261…333c7f block 118,427,655
- 0x956843c7…a53d43 block 118,420,606
- 0x5fb4efd8…13cb70 block 118,406,755
- 0xcc7a310a…a81365 block 118,403,229
- 0xf0d724bd…0b5023 block 118,403,159
- 0xe091f694…f37ee1 block 118,397,678
- 0xfea623f1…6eb4d6 block 118,392,499
- 0x7635d344…d7ec57 block 118,387,188
- Passed on the fees it had collected 21 times
Latest transactions
- 0x3dce12aa…e28a0a block 118,452,811
- 0x9147e27f…d4ea4a block 118,417,214
- 0x4608e332…193f77 block 118,345,500
- 0x5a9b36ed…95e081 block 118,309,642
- 0x16a84bdc…b0e950 block 118,274,293
- 0xeb637b88…bf584b block 118,240,176
- 0xa370bfbe…1c10c2 block 118,206,495
- 0xe3d84d84…e383b9 block 118,139,628
- 0xd1c2a952…db39d4 block 118,105,920
- 0xb9aee4d3…4427c5 block 118,039,244
Settings changes: set up a pool (1 time).
Counted from what the hook recorded on-chain across all its pools, for every action in its published code, plus token transfers in and out of it.