StashPairHook
RobinhoodStashPairHook is a Uniswap v4 hook on Robinhood Chain. Brand new: its first pool went live today. Still in use: 68 trades in the last week, and 1 new pool this week.
- Contract name
- StashPairHook
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); if ( params.amountSpecified == 0 || params.amountSpecified > type(int128).max || params.amountSpecified < -int256(type(int128).max) ) revert BadSwap(); bool isBuy = params.zeroForOne == quoteIs0; bool exactIn = params.amountSpecified < 0; uint256 fee; if (isBuy && exactIn) { // buy, exact quote in uint256 gross = uint256(-params.amountSpecified); fee = _cut(gross, buyBps); if (fee >= gross && fee != 0) revert BadSwap(); } else if (!isBuy && !exactIn) { // sell, exact quote out: the pool pays gross, the seller gets the asked amount uint256 net = uint256(params.amountSpecified); fee = _gross(net, sellBps) - net; } _accrue(fee, isBuy); 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) { (address c0, address c1) = quoteIs0 ? (quote, token) : (token, quote); if ( sender != launcher || poolOpen || Currency.unwrap(key.currency0) != c0 || Currency.unwrap(key.currency1) != c1 || 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 68 times
Latest transactions
- 0x175975f3…36ca0a block 119,060,899
- 0x073abfc0…e6aeb9 block 119,060,825
- 0x9fac7237…f8915d block 119,060,807
- 0x5a4f9d53…ae26b2 block 119,060,801
- 0x9766605b…b5dd99 block 119,060,781
- 0xbc9963b6…b296e0 block 119,060,773
- 0x42adeb4b…905b21 block 119,060,769
- 0xa6bd4999…ddfaee block 119,060,766
- 0x734f62f5…e0a221 block 119,060,755
- 0x79603f7c…398806 block 119,060,745
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.