delta-vault program is the yield engine of Kimia. It takes USDC from
depositors, holds half of it, and sells the other half into a SOL-PERP short, so
the vault’s value stays flat as SOL price moves, but accrues the funding rate.
The insight
In crypto, longs pay shorts funding whenever perp price > spot. Historically this has averaged positive, double-digit APY on major assets. A delta-neutral vault earns that funding without betting on price direction.How a deposit works
User calls deposit(amount, open_perp=true, size_amount)
USDC is transferred from the user into
vault.usdc_vault. Vault shares are
minted proportional to existing NAV.Vault buys wSOL on the spot leg
Via CPI to
kimia-perp::spot_swap, half the USDC is swapped for wSOL at the
oracle price (plus a small spread).Vault opens a SOL-PERP short
Via CPI to
kimia-perp::deposit_collateral and kimia-perp::place_order, the
other half of the USDC is posted as collateral and a market short is opened.Vault share price
Both use 9-decimal fixed point. The first depositor receivesshares = amount
since totalShares starts at zero.
NAV only moves when claim_funding is called. Between cranks, share price is
constant, deposits/withdrawals are atomic and fair.
Funding accrual
claim_funding is the heart of the vault:
CPI settle_funding
The vault PDA signs
kimia-perp::settle_funding, which accrues the funding
delta into the perp user account’s collateral.States
| State | Meaning | Allowed ops |
|---|---|---|
Active | Normal operation | deposit, withdraw, rebalance, claim_funding |
Paused | Auto- or admin-paused | withdraw only (after unwind) |
Closed | Terminal |
Interaction with split-engine
Vault shares are fungible SPL tokens. Thesplit-engine wraps them into PT + YT,
so vault depositors can:
- Hold shares → earn funding directly
- Split them → sell YT now (fixed rate) or sell PT now (leverage on YT)
Read next
PT / YT tokenization
How the yield is split into two tradable tokens.
delta-vault reference
Accounts, instructions, CPIs.
Deposit into the vault
End-to-end walkthrough.

