StashHook
RobinhoodHookStashHook is a Uniswap v4 hook on Robinhood Chain. Brand new: its first pool went live today. Active: 241 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 241 times
Latest transactions
- 0xdf1b5e73…362fea block 128,197,629
- 0x5df90152…97d180 block 128,196,914
- 0x7d3167e8…c9b76e block 128,196,896
- 0xb315e297…9b074f block 128,196,886
- 0x0e024958…93ce46 block 128,196,876
- 0x07cffe34…0f1859 block 128,196,865
- 0xa5ff92ce…37d389 block 128,196,856
- 0x1bcb3e47…29a3bd block 128,196,846
- 0xd2361d52…a28fe7 block 128,196,837
- 0x7f321792…1539ef block 128,196,795
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.