This guide walks you through creating a vault on testnet, funding it with USDC, and activating it for contributions. It then covers how vaults work under the hood (lifecycle, fees, shares) and advanced operations like contributing to existing vaults, redeeming shares, and delegating trading permissions.
Part 1: Launch Your First Vault
Fund your account, create a vault on testnet, and activate it.
Part 2: How Vaults Work
Lifecycle, fees, shares, and parameters.
Part 3: Advanced Operations
Contributing, redeeming, querying, and delegation.
Part 1: Launch Your First Vault
You can also create and manage vaults through the Decibel UI without writing any code. Navigate to Accounts, then click the Vaults tab and “Create Vault.” This guide covers the programmatic approach.
1. Prerequisites
- Node.js 18+ (or Python 3.8+)
- An API Wallet with its private key (create one at app.decibel.trade/api)
- An API Key (Bearer Token) from Geomi (see Get API Keys)
- Testnet APT for gas fees: paste your API Wallet address into the Aptos Testnet Faucet. This is your wallet address, not your Trading Account (subaccount) address.
2. Install Dependencies
3. Set Up Your Script
Every code example in this guide uses these imports and constants:4. Get Your Trading Account Address
Your Trading Account (subaccount) holds USDC collateral. Use the onchain view function to get its address:The primary subaccount is auto-created on your first deposit. You don’t need to create it manually.
5. Mint Testnet USDC
On testnet, you can mint USDC using therestricted_mint function (rate-limited per account). You need at least 100 USDC to fund a vault.
6. Deposit USDC to Your Trading Account
Move the USDC from your wallet into your Trading Account so it can be used as vault capital.7. Create and Fund Your Vault
This creates a new vault and deposits your initial capital from your Trading Account. If you fund with at least $100, the vault activates automatically.Setting
delegate_to_creator to true automatically grants your account trading permissions on the vault. If you set it to false, you need to delegate separately later.8. Activate the Vault (if needed)
If your vault was funded with at least $100 at creation, it activates automatically. Otherwise, fund it to the minimum and then activate:9. Delegate Trading (optional)
If you setdelegate_to_creator to false during creation, or want to grant trading permissions to another account (e.g. a bot wallet):
10. Place an Order as the Vault
With delegation set up, place orders on behalf of the vault using the same order placement flow. The vault’s pooled capital is used as margin.Verify your vault is live. Browse to app.decibel.trade/vaults and search for your vault name. You can also query it via the REST API to confirm it’s active and accepting contributions.
Part 2: How Vaults Work
A vault pools capital under a single manager. The manager trades with the pooled funds, and profits (after fees) are distributed to all shareholders proportionally. Contributors receive fungible share tokens representing their claim on the vault’s net assets. See Vaults for Traders for the full contributor perspective.Vault Lifecycle
| Phase | What happens |
|---|---|
| Creation | Manager creates the vault, sets fee parameters, and deposits initial capital |
| Pre-activation | Vault exists but doesn’t accept contributions. Manager must fund it to the minimum ($100) |
| Activation | Manager activates the vault (or it auto-activates if funded with >= $100 at creation). It can now accept outside contributions |
| Active trading | Manager (or delegate) trades with pooled capital. Contributors can join or redeem |
| Ongoing | Fees are crystallized at each interval. Shares are minted/burned as contributors join/leave |
Interval-Based Performance Fees
Vaults use an interval-based fee model. There is no high watermark or cumulative tracking.- When a vault is created, the manager sets a fee rate (0-10%) and a fee interval (30-365 days).
- At the end of each interval, the protocol compares the vault’s current NAV to its NAV at the start of that interval.
- If the vault profited during that interval, the manager receives their fee percentage as newly minted shares.
- If the vault lost money or broke even, the manager receives nothing for that interval.
- The next interval starts fresh. There is no carry-forward of losses from previous intervals.
Key Parameters
These are the protocol-enforced limits. Vault managers choose values within these ranges at creation time.| Parameter | Range / Value |
|---|---|
| Performance fee | 0-10% (0-1000 bps) |
| Fee interval | 30-365 days |
| Min manager capital | Lesser of 5% of vault NAV or $100,000 |
| Min activation funding | $100 |
| Min contribution | $10 |
| Min redemption | $5 |
| Max contribution lockup | 0-7 days |
| Vault creation fee | Configurable (currently $0) |
Shares as Fungible Tokens
When you contribute to a vault, you receive fungible share tokens on Aptos. These shares are transferable, can be used as collateral in other DeFi protocols, and can be traded on secondary markets. See Fungible Token Ownership for details.Protocol Vault (DLP) vs User Vaults
Decibel runs one special vault, the Decibel Liquidity Provider (DLP), alongside user-created vaults. Both use the same onchain infrastructure.| DLP Vault | User Vaults | |
|---|---|---|
| Manager | Protocol (automated) | Any user |
| Strategy | Market making | Manager’s discretion |
| Contribution lockup | 72 hours | 0-7 days (manager-configured) |
| Fee structure | 0% | Manager-defined (0-10%) |
Part 3: Advanced Operations
Contributing to an Existing Vault
Anyone can contribute to an active vault that accepts contributions. The minimum contribution is $10 USDC. Contributions go through your Trading Account (subaccount).Redeeming Shares
To withdraw from a vault, redeem your share tokens for the underlying USDC. The minimum redemption is $5. The protocol may close up to 10% of positions per redemption at up to 2% slippage to free capital.Querying Vault Data
Vault data is available through the REST API. See the vault endpoints for querying vault data like ownership, performance, and public vault listings.Trading on Behalf of a Vault
The vault manager (or any delegated account) can place orders using the vault’s pooled capital:- At creation: if
delegate_to_creatoristrue, the vault creator automatically has trading permissions. - After creation: the vault owner can delegate to additional accounts using
delegate_dex_actions_to. - Delegations can optionally have an expiration timestamp.
- The vault owner can revoke delegations at any time.
What’s Next
Read the onchain reference
Full parameter docs for Create and Fund, Activate, Contribute, Redeem, and Delegate.
Understand vault fees and mechanics
See Vaults for Traders for the contributor perspective and Fees for the full fee breakdown.
Explore the DLP Vault
Learn about the protocol-owned liquidity vault and its backstop role on the DLP Vault page.
Build with the SDK
The TypeScript SDK provides high-level helpers for vault operations.

