Recurve Docs
Website GitHub Open app

Reference

Deployment

Deploying a fund on Robinhood Chain end to end: the token, the contracts, the handover to a multisig, then the app, the indexer and the agent that read them.

Before you start

1. Settings

mainnet.env in the protocol repo holds every public value. The keys never enter the repo: the scripts read deployer.key and agent.address from ~/.config/recurve.

VariableValue
VAULT_ASSETUSDG, 6 decimals: the fund is priced in dollars
DEPOSIT_CAP10000, whole units of the asset
TREASURYThe Safe
REVE_TOKENThe $RECURVE address from Pons
DEX_ROUTERUniswap's SwapRouter02
NVDA_TOKENNVDA, the strategy's one basket leg
FEE_TIER500, the deepest NVDA pools

Constants the script fixes: min stake 1,000 RECURVE (a stand-in, re-sized under After launch), unstake delay 7 days, veto window 24 hours, threshold 20%, two blocks to stop, 5% fee, a 3% slippage cap.

2. Contracts

./deploy-mainnet.sh               # simulates against mainnet, prints every address, sends nothing
./deploy-mainnet.sh --broadcast   # registry, vault, governor and strategy, wired, in one run
./handover.sh                     # shows what moves to the Safe
./handover.sh --broadcast         # registry owner and agentAdmin to the Safe

The deploy refuses to start on any chain but 4663, without a treasury, or below 0.0004 ETH on the deployer. It then writes addresses/4663.json in the protocol repo and app/src/lib/addresses/4663.json in the website repo. The whole deploy costs about 6.7M gas. The handover needs a little ETH on the agent too, since it signs setAgentAdmin.

Verify the source on Blockscout afterwards:

forge verify-contract <address> <Contract> --chain 4663 --verifier blockscout \
  --verifier-url https://robinhoodchain.blockscout.com/api/

3. Everything that reads them

  1. Site, app and docs. All three read the file the deploy wrote, and npm run deploy in the website repo rebuilds and ships them together. The docs render the address blocks on Contracts, the SDK quickstart and the two skill pages from that file.
  2. Indexer. On its service: CHAIN_ID=4663, VAULTS=main:<vault>:<governor>:Recurve Fund, DEPLOY_BLOCK=<block>, LOG_CHUNK=100000. Check /health/indexer after the first backfill.
  3. Runner. Every variable in its .env.example, with DRY_RUN=true for the first rounds. Its key is the agent, funded with ETH and with USDG for fees. Read the log, then turn the dry run off.

4. After launch

Robinhood Chain infrastructure

Uniswap's official deployment on chain 4663, the pool the fund trades and its two tokens, checked on chain 2026-10-31:

ContractAddress
UniswapV3Factory0x1f7d7550b1b028f7571e69a784071f0205fd2efa
SwapRouter02 (DEX_ROUTER)0xcaf681a66d020601342297493863e78c959e5cb2
QuoterV2 (DEX_QUOTER)0x33e885ed0ec9bf04ecfb19341582aadcb4c8a9e7
USDG/NVDA pool, 0.05%0xd4EB21209C4D6093f80B5b84f5C45cc093EA14a3
USDG (VAULT_ASSET)0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168
NVDA (NVDA_TOKEN)0xd0601CE157Db5bdC3162BbaC2a2C8aF5320D9EEC

The canonical Ethereum-mainnet Uniswap addresses hold unrelated code on this chain; use these, and verify any other third-party address on chain before deploying against it.