Depositing

How USDC becomes shares, step by step.

The three steps#

  1. Open. Your USDC moves into an escrow account owned by the zapper program. The whole plan is fixed in that moment and signed: exactly how much USDC each token’s purchase spends, and the minimum amount of each token it must receive (from your slippage setting). The entry fee stays in the escrow.
  2. Buy each token. Each asset is bought in its own transaction through Jupiter. A keeper runs these transactions, but it cannot change the plan: a purchase that would receive less than its minimum fails.
  3. Close. When every token has been bought, they are deposited into the vault in kind, your shares are minted, and the entry fee is paid to the creator and the platform. The escrow closes and its rent comes back to you.
Fund capacity62%$620 of $1K
Depositing into Sample fund
App wallet: —
USDC
0.50%

All three steps are signed by your app wallet. Nothing opens in your own wallet.

How many shares you get#

For a fund that already has holders, the vault mints:

shares = min over held assets i of ⌊ deposited_i × basket_supply / vault_balance_i ⌋

Each token counts only up to the amount that keeps the fund’s proportions; anything above that is returned to your app wallet at close. This makes a deposit proportional by construction: it can never dilute the people already in the fund. The first deposit into an empty fund sets the share price at about $1.00.

Slippage#

Slippage is how much worse than the quote a purchase may land. The app starts at 0.5% and lets you change it; the contract refuses anything looser than 10% per token. Because the purchases happen in your escrow, with your USDC, before any share exists, your slippage is yours alone — it never lands on the fund’s other holders.

Kim, the in-app agent, always tells you the slippage it will use and remembers your default once you give it. Above that default it acts on its own only when your own message names the number; otherwise it shows a confirm card with the value for you to approve.

If a deposit stalls#

A purchase can fail to land if the market moves past your minimum. You then have two ways out, both signed by your app wallet:

  • Loosen the minimums. Allowed once the deposit has been stuck for a minute. It can only loosen, only for tokens not yet bought, and never past the 10% cap.
  • Cancel. Returns whatever the escrow holds right now — the USDC not yet spent and the tokens already bought — plus the entry fee. You can cancel at any time. Anyone else can trigger a cancel only after the deposit has expired (its window is set at open, between 1 and 30 minutes), and even then everything goes back to you.

What you need#

  • USDC in your app wallet for the amount.
  • A little SOL for network fees and for the rent of the temporary accounts the deposit opens. The rent comes back at close.

Fund cap (Season 0)#

During Season 0 every fund is capped at $1,000 of value. It is a safety limit: it keeps the amount at stake in any one fund small while the protocol is young.

  • Each fund shows how full it is: a gold bar with the share of the $1,000 already used, on the fund’s page and on the Marketplace.
  • A deposit that would take the fund past $1,000 is refused before any USDC moves, with the room that is left. Once a fund reaches $1,000 it says Full and takes no new deposits.
  • It applies to every deposit made through DFM: the app, quick buy, and agents through the MCP server or the API.
  • The fund is measured live when you deposit, from its token balances, and deposits already in progress count toward the cap. If a fund cannot be measured at that moment, or holds a token with no price, the deposit is refused rather than let through.
  • A deposit that gets past the check but would go over the cap is not filled: it is cancelled when it expires and refunded in full.
  • Redeeming is never limited: you can always take your money out.

⚠ Where the cap lives

The $1,000 limit itself is measured and enforced by DFM’s app, API and keeper. The vault program enforces the other half: while the Season 0 cap is switched on (factory.max_vault_tvl_usdc above 0, live since app build v.2003; agents read it as factory.zapperOnlyMint in protocol_facts, a flag and not a dollar amount), only the zapper can mint shares. A transaction built by hand that deposits tokens straight into the vault program reverts (VaultTvlCapExceeded), so there is no way around the check.

Depositing tokens directly#

Closed during Season 0. Outside Season 0, anyone can deliver the basket’s tokens directly to the vault program and receive shares, without USDC or swaps; the same share formula applies, and the entry fee is charged in shares instead of USDC. While the cap is on, the vault program refuses any mint that does not come through the zapper, so deposit with USDC instead. Redeeming directly (below) is not affected.