Protocol

Contracts & networks

HoodPerp runs on Robinhood Chain. This page lists the network parameters and the on-chain contracts that power swaps, deposits, and buybacks.

Network#

ParameterValue
NetworkRobinhood Chain
Chain ID4663
RPChttps://rpc.mainnet.chain.robinhood.com
Explorerrobinhoodchain.blockscout.com
Native currencyETH

Core tokens#

TokenAddress
USDG0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168
Stock tokensListed on the Blockscout token list

Contracts#

ContractAddressRole
Router0xfcF6B2f693027bB493974ECDb4f5035B78F8b90AAtomic stock → USDG swap + Lighter perps deposit
WithdrawRouter0x3E28321aa7e9fD423A99f56942AccE23aD9d18DCUSDG → stock token after Lighter withdrawal settles on L1
USDG0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168Margin collateral stablecoin (6 decimals)
Lighter0x94bAB9693Ba2f6358507eFfcbd372b0660AFfF9dOn-chain deposit / settlement contract
Uniswap Universal Router0x8876789976dEcBfCbBbe364623C63652db8C0904Spot swaps (Uniswap v4)
Permit20x000000000022D473030F116dDEE9F6B43aC78BA3Token approvals for the Universal Router

Router details#

  • Entrypoint: convertAndDeposit(stockToken, amountIn, minUsdgOut, deadline) — swaps a stock token to USDG via Uniswap v4 and deposits margin to the caller's Lighter account in one tx.
  • USDG asset index: 3 (Lighter perps route)
  • Minimum deposit: 1 USDG
  • Pre-configured stock tokens: AAPL, TSLA, NVDA, MSFT, GOOGL (more can be added by the owner via setStockToken)

WithdrawRouter details#

After Lighter settles a USDG withdrawal to your wallet, call the WithdrawRouter to swap USDG back into a supported stock token. Pre-configured targets match the Router's stock list.

i

BuybackVault

The BuybackVault ships separately once the $HPERP token launches. It is not part of the initial trading platform deployment.

Adding the network manually#

json
{
  "chainId": 4663,
  "chainName": "Robinhood Chain",
  "rpcUrls": ["https://rpc.mainnet.chain.robinhood.com"],
  "nativeCurrency": { "name": "Ether", "symbol": "ETH", "decimals": 18 },
  "blockExplorerUrls": ["https://robinhoodchain.blockscout.com"]
}