Skip to content
Berry Docs
Berry Juicer

Create a Position

Create a Position

How deposits work

Deposits are open on Robinhood Chain. Each deposit gets its own vault, harvests run on a 30 minute cycle, and proceeds are credited as inference rather than paid out as a token.

In the dapp

  1. 01Open /juicer and connect your wallet (Robinhood Chain).
  2. 02Go to Create a Pool. Enter a token address; the calculator shows live market data and an estimate of value generated for your chosen supply (estimates only, driven by current volume and liquidity).
  3. 03Deposits are opening soon. Once the token is supported for deposit and deposits are enabled, approve and create. Two transactions: an ERC-20 approval to the factory, then createVault. Your vault address appears in the receipt.

Supported tokens are listed by the API at GET /api/config (supportedTokens). Read the live deposit factory from GET /api/config (depositFactory). The calculator works for any Robinhood Chain token; deposits are enabled per token as pools are registered.

From a contract or script

ERC20(token).approve(factory, amount);
factory.createVault(token, amount); // returns the vault address; emits VaultCreated

Read the live deposit factory from GET /api/config (depositFactory) instead of hardcoding it. The factory reverts with UnsupportedToken for tokens that are not registered.

Withdrawing

Call withdraw() on your vault. Creator-only, no arguments, closes the position and returns principal in full. There is no partial withdraw; to resize, withdraw and re-deposit.

Manual harvest

Harvests are automatic every 30 minutes. The vault's creator may also call harvest(minOut). Simulate harvest(0) first via eth_call from your address and submit with 99% of the simulated value as minOut. Skip when the simulated value is under $0.50.