StashPairHook
RobinhoodStashPairHook is a Uniswap v4 hook on Robinhood Chain. Live for 2 days. Active: 89 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 89 times
Latest transactions
- 0xab710a6a…1a0d73 block 120,414,945
- 0x89fb16b5…a1319e block 120,299,290
- 0xece79067…e47b85 block 120,170,207
- 0x9cd93a43…53932c block 120,132,364
- 0x45d3715a…59e8f3 block 120,098,068
- 0xa29cd90d…7c3f7d block 120,068,034
- 0xc7a43ac8…45b0d8 block 120,067,884
- 0x324467ac…8e2f02 block 120,065,058
- 0x5490f61b…4407bb block 120,064,680
- 0x4adb80e6…6fa0fa block 120,064,385
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.