For the complete documentation index, see llms.txt. This page is also available as Markdown.

Vault system

How a vault holds a portfolio's assets and routes deposits into its target allocation.

A vault is a program-controlled account on Solana that securely holds the portfolio assets for a given DiversiFi Strategy or custom portfolio. Each vault corresponds 1:1 with a portfolio configuration and operates as an isolated unit.


Core Mechanics

  • Deposits:

    • Users deposit USDC into the vault interface.

    • The backend executes token swaps (via Jupiter) into the portfolio’s target token allocation. The deposit account keeps track of the vault's accountability. As long as the swaps haven't gone through, the user can reclaim the deposit before it happens.

    • The vault receives the resulting tokens.

  • dToken Minting:

    • Users receive portfolio tokens (dTokens, SPL tokens) that represent their proportional exposure to the vault's value.

    • These tokens are minted on deposit and burned on withdrawal.

  • Withdrawals:

    • Users can redeem their position from dTokens back to USDC at any time.

    • The backend performs proportional swaps from vault assets back to USDC and sends the result to the user. The withdrawal account keeps track of the vault's accountability. As long as the swaps haven't gone through, the user can reclaim the withdrawal before it happens.

    Users do not directly hold, own, or control the underlying assets at any point. The underlying assets are held by the vault program, not the user.


On-Chain Logic & Safety

  • Non-Custodial:

    • Vaults are program-controlled. Users always hold dTokens that entitle them to redeem their share.

    • No user funds are held by the team or in off-chain systems.

  • Isolation:

    • Each portfolio vault is isolated. In the unlikely case of a misbehavior in one vault, it would not affect others.

    • Each vault has its own token mint, account structure, and oracle feed.

  • Transparency:

    • Balances, weights, performance data, and vault contents are visible and auditable directly onchain.


Roles & Permissions

DiversiFi separates operational and strategic control across two distinct roles: the Platform Admin and Strategy Managers / Partners.

🔸 The Admin

The Admin is the operational controller of the protocol. It is a multisig controlled by the SolutioFi core team. The Admin does NOT have control over the funds (withdrawals).

🔸 Partners / Strategy Managers

A Partner is any external contributor who builds on DiversiFi, either by:

  • Creating and managing a strategy or portfolio via our permissioned infrastructure (as a Strategy Manager)

  • Integrating DiversiFi vaults into their own app or frontend via our SDK and API

Partners can bring new strategies to the platform or distribute existing ones to their own audiences, without handling infrastructure.

🔸 Users

  • Can initiate deposits (send USDC) or withdrawals (send dTokens).

  • Can cancel/refund a pending deposit or withdrawal if not yet processed.

Last updated