Skip to content
Berry Docs
Berry Juicer

Contracts and Addresses

Contracts and Addresses

Robinhood Chain (chain id 4663). Addresses are published once the contracts are deployed and verified.

No addresses are published yet. Berry Juicer has not been redeployed on Robinhood Chain following the move from its previous chain, so there is nothing here to copy. Anything you find elsewhere claiming to be a Berry contract on this chain did not come from Berry.

Always read the live deposit factory from GET /api/config (depositFactory) instead of hardcoding it.

Key functions

IsolatedFactory: createVault(address token, uint256 amount) -> address vault
                 vaultsOf(address creator) -> address[]
Vault:    position() -> (token, amount, open)
          withdraw()                       // creator only
          harvest(uint256 minOut)          // operator or creator
InferenceRouter: creditedOf(address creator) -> uint256   // legacy shared-mode only, lifetime USDG 6dp

Key events

VaultCreated(creator, vault, token, amount, id)
Harvested(creator, usdgGross, creatorValue, protocolMargin)
Withdrawn(creator, tokenReturned, quoteReturned)
InferenceCredited(creator, quoteToken, value)

Amounts in Harvested and InferenceCredited are USDG with 6 decimals.

Permissions

  • createVault: anyone, supported tokens only (reverts UnsupportedToken otherwise)
  • withdraw: vault creator only; independent of all off-chain services
  • harvest: protocol operator or the vault's creator; proceeds are hard-routed on-chain