RialtoPropAMMAggregator
RobinhoodHookRialtoPropAMMAggregator is a Uniswap v4 hook on Robinhood Chain. Brand new: its first pool went live today.
- Contract name
- RialtoPropAMMAggregator
How this hook works
Trading taxA trading tax hook. It takes a cut of every trade, stops liquidity being added directly and only lets approved callers create pools.
Takes a cut of every trade
On top of the normal pool fee, it keeps a share of each trade. It can never be above 0.05%.
The code that does this (conductSwap):function _conductSwap(Currency settleCurrency, Currency takeCurrency, SwapParams calldata params, PoolId poolId) internal override returns (uint256 amountSettle, uint256 amountTake, bool hasSettled) { if (params.amountSpecified >= 0) revert ExactOutputNotSupported(); amountTake = uint256(-params.amountSpecified); if (amountTake == 0) revert AmountInZero(); if (amountTake > MAX_SWAP_AMOUNT) revert AmountInTooLarge(); PoolInfo storage info = poolIdToPool[poolId]; address poolAddr = info.pool; if (poolAddr == address(0)) revert InvalidPoolId(); poolManager.take(takeCurrency, address(this), amountTake); uint256 grossOut = _executeViaRouter( poolAddr, info.flipped ? !params.zeroForOne : params.zeroForOne, Currency.unwrap(takeCurrency), Currency.unwrap(settleCurrency), amountTake ); if (grossOut == 0) revert ZeroOutput(); if (grossOut > MAX_SWAP_AMOUNT) revert AmountOutTooLarge(); uint256 fee = Math.mulDiv(grossOut, feePips, PIPS); amountSettle = grossOut - fee; if (amountSettle == 0) revert ZeroOutput(); // …Liquidity can’t be added directly
Nobody can add liquidity to its pools through Uniswap directly. Liquidity only comes in through the hook’s own code.
Only approved callers create pools
New pools with this hook can only be created by approved callers, for example its own factory or launcher.
The code that does this (beforeInitialize):function _beforeInitialize(address, PoolKey calldata key, uint160) internal override returns (bytes4) { if (key.currency0.isAddressZero() || key.currency1.isAddressZero()) revert NativeCurrencyNotSupported(); if (key.fee != LPFeeLibrary.DYNAMIC_FEE_FLAG || key.tickSpacing != CANONICAL_TICK_SPACING) { revert InvalidPoolParams(); } address t0 = Currency.unwrap(key.currency0); address t1 = Currency.unwrap(key.currency1); PoolInfo memory info = allowedPool[t0][t1]; if (info.pool == address(0)) revert PairNotAllowed(); if (isInitializedPair[t0][t1]) revert PairAlreadyInitialized(); isInitializedPair[t0][t1] = true; PoolId pid = key.toId(); poolIdToPool[pid] = info; emit AggregatorPoolRegistered(pid); return IHooks.beforeInitialize.selector; }Simple trades only
Trades must state the amount going in, not the amount coming out.
The code that does this (rawQuote):function _rawQuote(bool zeroToOne, int256 amountSpecified, PoolId poolId) internal view override returns (uint256 amountUnspecified) { if (amountSpecified >= 0) revert ExactOutputNotSupported(); uint256 amountIn = uint256(-amountSpecified); if (amountIn == 0) revert AmountInZero(); if (amountIn > MAX_SWAP_AMOUNT) revert AmountInTooLarge(); PoolInfo memory info = poolIdToPool[poolId]; if (info.pool == address(0)) revert InvalidPoolId(); bool rialtoZeroForOne = info.flipped ? !zeroToOne : zeroToOne; uint256 grossOut = IRialtoPropAMMPool(info.pool).getAmountOut(rialtoZeroForOne, amountIn); if (grossOut == 0) revert ZeroOutput(); uint256 fee = Math.mulDiv(grossOut, feePips, PIPS); amountUnspecified = grossOut - fee; if (amountUnspecified == 0) revert ZeroOutput(); }
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.
Pools using it let the hook choose the swap fee instead of a fixed tier.
It checks every deposit before it goes in.
It runs when a pool is created, often to lock in that pool’s settings.
Hook history
- Registered an aggregator pool 16 times
Latest transactions
- 0x3834d8bf…626f38 block 130,814,515
- 0x9fc0fa25…15d77c block 130,814,466
- 0x3279328f…b9862e block 130,814,402
- 0xebc2cb82…aa6d8f block 130,814,334
- 0xf2a00224…01bc95 block 130,814,296
- 0x289b730c…2e5145 block 130,814,254
- 0x935dd64f…c363ea block 130,812,937
- 0x8ce07abf…30ae5e block 130,812,889
- 0xfd814392…807062 block 130,812,839
- 0xbf51dbb5…4b78bd block 130,812,793
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.