StashHook
RobinhoodStashHook is a Uniswap v4 hook on Robinhood Chain. Live for 2 days. Active: 149 trades in the last week, and 1 new pool this week.
- Contract name
- StashHook
How this hook works
Trading taxStashHook runs one token's ETH pool with a buy tax and a sell tax in ETH, both set when the hook was made. The tax builds up and is sent to a fixed fee wallet.
Buy and sell tax in ETH
Buys and sells each pay their own tax rate, taken from the ETH side before or after the swap depending on how the trade is entered.
The code that does this (_beforeSwap):function _beforeSwap(address, PoolKey calldata key, SwapParams calldata params, bytes calldata) internal override returns (bytes4, BeforeSwapDelta, uint24) { _checkPool(key); // Bounding the specified amount keeps the negation and the int128 deltas safe. if ( params.amountSpecified == 0 || params.amountSpecified > type(int128).max || params.amountSpecified < -int256(type(int128).max) ) revert BadSwap(); uint256 fee; if (params.zeroForOne && params.amountSpecified < 0) { // buy, exact ETH in uint256 gross = uint256(-params.amountSpecified); fee = _cut(gross, buyBps); if (fee >= gross && fee != 0) revert BadSwap(); } else if (!params.zeroForOne && params.amountSpecified > 0) { // sell, exact ETH out: the pool pays gross, the seller gets the asked amount uint256 net = uint256(params.amountSpecified); fee = _gross(net, sellBps) - net; } _accrue(fee, params.zeroForOne); return (BaseHook.beforeSwap.selector, toBeforeSwapDelta(_i128(fee), 0), 0); }One pool only
The hook only works with its one token's pool, created by its launcher.
The code that does this (_beforeInitialize):function _beforeInitialize(address sender, PoolKey calldata key, uint160) internal override returns (bytes4) { if ( sender != launcher || poolOpen || Currency.unwrap(key.currency0) != address(0) || Currency.unwrap(key.currency1) != token || address(key.hooks) != address(this) || key.fee != 0 || key.tickSpacing != TICK_SPACING ) revert BadPool(); poolId = key.toId(); poolOpen = true; return BaseHook.beforeInitialize.selector; }Paid to a fixed wallet
Anyone can trigger a claim, which always sends the collected tax to the fee wallet set at creation.
The code that does this (claim):function claim() external returns (uint256 amount) { amount = stashed; if (amount == 0) revert NothingToClaim(); stashed = 0; totalClaimed += amount; _claiming = true; poolManager.unlock(abi.encode(amount)); _claiming = false; emit Claimed(msg.sender, feeWallet, amount); }
Who controls it: Nobody can change the tax rates or the fee wallet, and the code cannot be upgraded.
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 tax from a trade 149 times
Latest transactions
- 0xb1a99f68…3bfa9b block 120,623,242
- 0x22f687af…8bff4e block 120,494,051
- 0xcf4f3bb3…ad0a2f block 120,490,224
- 0x3240ad3f…4d8ad6 block 120,487,836
- 0xb55b6d2e…f72060 block 120,487,825
- 0xe560da97…721a48 block 120,487,815
- 0x10957ecb…2c2d9e block 120,487,807
- 0x23d14256…129fce block 120,487,798
- 0xb6549298…2eee94 block 120,487,792
- 0x3e6c296b…4f2e12 block 120,487,784
- Sent collected tax to the fee wallet 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.