Skip to content
ArkBerry Docs
ArkBerry Juicer

Contracts and Addresses

Contracts and Addresses

Network: Arc, chain id 5042. Block explorer: explorer.arc.io.

This page lists no contract addresses. An address presented anywhere else as an ArkBerry contract on this chain did not come from this page, so do not send funds to it on that basis.

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 USDC 6dp

Key events

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

Amounts in Harvested and InferenceCredited are USDC 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