How OnionSwap works.
OnionSwap is a front end for Uniswap v3 and v4 on Robinhood Chain. It has no smart contracts of its own. This page lists what it does and what to watch out for.
Swap
You choose the token you pay, the token you receive and an amount. The app asks the Uniswap factory for every direct pool of that pair (0.01%, 0.05%, 0.3% and 1% fee tiers), asks the Uniswap quoter for each one, and uses the best. The app also looks for direct Uniswap v4 pools (including pools with hooks, found from the PoolManager’s Initialize events) and quotes them with the v4 Quoter. If the pair has no good direct pool, it also tries one route through USDG or WETH (two v3 pools). It uses whichever gives the most and never goes through any other token. If none works, the app says so. A v4 swap with a token needs an approval to Permit2, a Permit2 approval for the router, then the swap. Native ETH in v4 needs no approval. A swap needs one approval for the amount you trade, then one transaction. Your slippage limit sets the minimum you accept.
Liquidity
You add two tokens to a pool across the full price range, so the position is always active. If the pool already exists, the second amount follows the pool price. If it does not exist, the app creates it, and the ratio of your two amounts sets the opening price, so check it carefully. You earn a share of the pool fee on every swap. You can collect fees or remove the whole position from the Liquidity tab. Only full-range positions are shown there.
Providing liquidity has a cost: if the price of the two tokens moves apart, your position can be worth less than just holding them (impermanent loss).
Fees
OnionSwap takes no fee. You pay the pool fee tier of the pool you trade in, which goes to liquidity providers, plus network gas.
Risks
Smart contract risk. You rely on Uniswap v3 and on each token’s contract. Issuer trust. Robinhood describes Stock Tokens as tokenised debt securities issued by Robinhood Assets (Jersey) Limited, not shares. Third-party analyses describe the token code as upgradeable and pausable, so transfers can be blocked. Corporate actions. Dividends and splits change a token’s multiplier, and trading can pause around one, so pool prices may lag. Thin pools. Many pools are small, so large swaps can move the price a lot. Check the quote. Fake tokens. A token with a matching name but a different address is not a Robinhood Stock Token. Match every address. Not available where the underlying tokenized stocks are not available.
Contracts
Addresses the app uses on Robinhood Chain (4663). Confirm each one on Blockscout.
| Contract | Address | Source |
|---|
Chain: Robinhood Chain (4663). Explorer: robinhoodchain.blockscout.com. In Swap, ETH is wrapped to WETH automatically. In Liquidity, use WETH. WETH and USDG come from Robinhood’s docs. USDC is the bridged Arbitrum-gateway token. Stock token addresses were collected from public references (Uniswap pool data on DexPaprika). Check every one against Robinhood’s list before you trade. Check them against Robinhood’s list.