> For the complete documentation index, see [llms.txt](https://docs.velvet.capital/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.velvet.capital/velvet-socialfai-ecosystem/onchain-vaults.md).

# Onchain Vaults

Velvet's vault contracts allow users to create shared onchain portfolios. A vault is a set of smart contracts deployed by its creator: depositors mint vault tokens against their deposits, the vault creator executes trades within the vault's rules, and all activity is verifiable onchain. Assets remain non-custodial at all times - the vault creator never takes custody of depositor funds, and depositors can withdraw according to the vault's parameters.

Vaults can be private (personal use) or public (open to others, with optional whitelists). All performance history is recorded onchain and visible to anyone.

Vault creators configure their own vault parameters, including optional fees, at deployment. Velvet provides the software and smart contract infrastructure; it does not operate, manage, or promote any vault, and does not provide investment advice. Vault creators and depositors are solely responsible for their own decisions and for compliance with the laws of their jurisdictions.

To create one, click “Portfolios” in the menu.

<figure><img src="/files/jdc9DYFbremS9it1ax1P" alt=""><figcaption></figcaption></figure>

Then select Public Portfolio on the right.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXf7H7-aMOWgmGAngH4W9UUoSkOglVHJmHYD8uEWZpSFEsq_xNsfV6gFElHeCDPR81ihJ7HLNLtc8ihVm5n6tiE1ntnBaLaEMp7ERd4lbOAY9AjY0DhizAuGsnuvdrI5pQzsuANj?key=LEmlQuVRyzbLUVJvu-3VnA" alt=""><figcaption></figcaption></figure>

From there you will be taken through six steps for setting up and deploying the Public Portfolio.

1. Basic Info: Set the Portfolio Name, Ticker (what it will show up as in your wallet), Creator Name, and a description (to let others know the strategy you will be running)
2. Settings: Here you will set the portfolio visibility, Transfer Restriction (whether people can send the portfolio tokens to others or not), and Whitelisting (where you can decide who is able to join the portfolio)
3. Fees: Here you can configure optional vault fees - Management (an annualized % of vault TVL), Performance (a % of realized gains above the high-water mark), and Entry/Exit fees (a % of each deposit or withdrawal).
4. Token Set Up: This step is where you set the initial amount of tokens created and the minimum amount needed to deposit.&#x20;
5. Asset Configuration: On this step, you will choose the assets you want in your portfolio. These assets can be spot assets or DeFi pools. This will just be the initial configuration and can be changed by trading in your portfolio once you have made the initial deposit. You can also just create it with one token (e.g., USDC or ETH) as a starting point for your strategy. Asset whitelisting will restrict your strategy only to the token you whitelist and can't be changed after the vault is created.
6. Review: Now everything is set up, you just have to review the Portfolio settings, press deploy (and confirm the transactions), and then make your initial deposit.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXde68z8jcXCl313h0PSMryOkAZbMEgZR6K1NovYxM4641mmYpkP1RSeuhGHl-aOKL3hYREMcLLg0_MTO8nq6LdET2pdmkFootduskIBndjj386Nxvn231JiOH0q9mgsiqBl1fgoqmKtpG4HVlmarqRImcER?key=LEmlQuVRyzbLUVJvu-3VnA" alt=""><figcaption></figcaption></figure>

Once the portfolio is deployed you can go to “My Portfolio” to find it (will also be on the Marketplace if it is Public) and go to the portfolio page to run your strategy. You can trade tokens and manage DeFi positions within your portfolio by using the trade section on the right.

<figure><img src="/files/uwh6CMv8aO6t1bHY6NBi" alt=""><figcaption></figcaption></figure>

The fees you set up for the vault can be claimed by pressing “Claim Fees” at the bottom of the vault page. You can also change the fees by pressing "edit", they will only be changed after a 30-day cooldown period to give the depositors time to exit the vault before the fees change.

<figure><img src="/files/vgKb4ZW4Mn7xXQgmWn1s" alt=""><figcaption></figcaption></figure>
