Skip to main content
Red Potion’s canonical contracts are deployed and verified per network. Deployed addresses live in the deployments/ directory of the contracts repository, one JSON file per network.

Networks

The entrypoint address in each file is fundManagerDeployer — the protocol root. The remaining entries are implementation addresses for each contract type; live proxies are created from these through the factories.
Addresses change as networks are added and implementations are upgraded. Always read the current value from the deployment JSON in the repository rather than hard-coding an address.

Toolchain

Red Potion is a Foundry project (Solidity 0.8.34, OpenZeppelin v5 upgradeable). Common commands:
RPC endpoints and Etherscan keys are configured via MAINNET_RPC_URL, BASE_SEPOLIA_RPC_URL, and ETHER_SCAN_API_KEY environment variables (see foundry.toml).

Repository layout

Upgrading a live deployment

Changing an implementation on the FundManagerDeployer or a Factory affects future deployments only. Existing proxies are upgraded individually through their own ProxyAdmins, owned by the proxyAdmin set at tenant/fund creation — see Access Control & Roles. The interactive script/upgrade-impls.sh helper handles redeploying implementations and upgrading live proxies.