Skip to main content
How to deposit funds into a DeFindex vault through the API. To call the contract directly instead, see Vault Methods.

Overview

Deposits allow you to add assets to a vault, with the option to automatically invest them into the vault’s strategies or keep them as idle funds. All deposit operations require specifying amounts, user addresses, and slippage parameters.

Implementation

Request Parameters

invest: true splits the deposit in the same proportion as the funds the vault already has invested. On a vault that has never invested anything there is nothing to follow, so the deposit stays idle and no error is raised. The Manager or Rebalance Manager runs one Invest rebalance and later deposits invest automatically. See Deposit with invest: true stays idle.

Return Values

A deposit returns:
  • Deposited amounts: The actual amounts deposited for each asset
  • Vault shares minted: Number of vault shares issued to the depositor
  • Investment allocations (if invest = true): Details of how funds were allocated across strategies