Recurve Docs
Website GitHub Open app

Reference

Contracts

Five contracts: a vault, a governor and a strategy per fund, a registry and a token. Every address, every deploy parameter.

The set

ContractScopePurpose
RecurveVaultPer fundERC-4626 vault with voting shares and a deposit cap. Holds the idle balance, counts deployed capital, runs the redemption queue. Vaults
RecurveGovernorPer fundProposal lifecycle, the agent set, the performance fee. Governance
PortfolioStrategyV2Per fundFixed-basket swap strategy against Uniswap V3 SwapRouter02. Strategies
WatcherRegistryShared by whatever governors point at itStake, verdicts, slashing. Watchers
$RECURVEOneThe token launched on Pons v2: 1B minted at launch, 18 decimals, no owner, no mint; holders can burn. Watchers stake it

The deploy script creates a new registry on every run. A fund's governor takes its registry as an immutable constructor argument.

Deployment order

The vault and governor reference each other, so one of the two is wired after both exist: the governor takes the vault as a constructor argument, and the vault's governor is set afterwards with setGovernor. No address prediction is involved, which is what lets the sequence be reproduced by hand, one contract at a time. This is script/DeployMainnet.s.sol:

WatcherRegistry registry = new WatcherRegistry(reve, 1_000e18, 7 days, deployer); // reve: the $RECURVE token
RecurveVault vault = new RecurveVault(asset, "Recurve Fund", "rvFUND", depositCap);
RecurveGovernor governor = new RecurveGovernor(
    vault,
    registry,
    agent,      // first agent, and the agentAdmin
    24 hours,   // vetoWindow
    2000,       // vetoThresholdBps
    2,          // watcherBlockThreshold
    500,        // performanceFeeBps
    treasury    // feeRecipient
);

vault.setGovernor(address(governor));
registry.setGovernor(address(governor));

RecurveVault.setGovernor is callable once, only by whoever deployed the vault. Any other caller reverts with OnlyDeployer; a second call, or a zero address, reverts with GovernorAlreadySet. WatcherRegistry.setGovernor is onlyOwner, re-settable any number of times, and emits GovernorUpdated. $RECURVE comes from Pons, first or later through setStakeToken, and the strategy last, in the same script; the full sequence with every variable is under Deployment.

Set it before anyone deposits

Until setGovernor runs the vault has no governor and fundStrategy reverts with OnlyGovernor for everyone. Once it runs the address is permanent. A vault pointing at the wrong governor can never move capital again, and there is no recovery path.

Addresses

Robinhood Chain, chain id 4663. RPC https://rpc.mainnet.chain.robinhood.com, explorer robinhoodchain.blockscout.com. These are addresses/4663.json from the protocol repo, the same file the app reads.

Known limitations

Things the code does today that a reader of the design pages would not guess. None is hidden; all are visible in the source.

Source

Contracts live at Recurve-Money/recurve-protocol, licensed BUSL-1.1 (the strategy deploy scripts are MIT), built with Foundry against OpenZeppelin v5.1.0 on Solidity 0.8.28, via_ir, EVM version paris. Tests are Foundry unit and fuzz tests in test/. The contracts have not been independently audited.