User Workflow

DiversiFi keeps things simple: clear steps, curated choices, and automated management.

No clutter, no guesswork. Just a clean investing experience anyone can follow.

How it works under the hood.

  1. Index Selection (Frontend/UI → Backend API)

    • User selects index.

  2. Deposit (User → Vault Program)

    • Users deposit USDC into a vault (one vault per index). Each vault’s allocation is monitored and kept within balance. However, while allocations remain inside the rebalancing threshold, they may not exactly match the target weights when a user enters. In that case, the user receives the vault’s current allocation at entry, which will be adjusted back to target during the next rebalance.

    • Vault mints Index Tokens (fungible SPL token) representing proportional share of vault TVL.

  3. Swap Execution (Vault Program → DEX)

    • Vault swaps USDC into underlying assets via the best route found by jupiter.

    • Swap logic bundled.

    • Results stored in vault account.

  4. Rebalancing Logic (Off-chain Monitor + Vault Program)

    • Continuous monitoring of drift vs. target weights (1 time per minute using switchboard oracle - feeds version).

    • If drift >10%, trigger auto-rebalancing.

    • Rebalancing swaps executed atomically (bundled), vault state updated.

  5. Withdrawal (User → Vault Program)

    • User burns Index Tokens.

    • Vault swaps back into USDC (or underlying assets if partial exit).

    • User receives funds net of deposit/withdrawal fees.

Last updated