NAV & Pricing
A BLUEDW is worth the vault's value divided by the share supply. Both are on-chain, and the vault's deposit note computes the mint from them in the same transaction that settles it.
The definition
NAV per share = V / S
V = H_btc·p_btc + H_eth·p_eth + H_sol·p_sol| Symbol | Meaning |
|---|---|
H_i | The vault's holding of coin i |
p_i | Pragma's median for coin i, read on-chain |
V | The vault's value, coins only |
S | BLUEDW total supply, 8 decimals |
The vault also keeps a little USDCx to pay its own network fees. That float is deliberately not counted in V: it is not backing, and counting it misprices shares when the basket is small.
Minting
The relay sends the coins it bought in an in-kind deposit note. The note computes, on-chain, before the coins enter the vault:
Δ = Σ carried_i · p_i # value of the coins in the note
s = Δ · S / V # shares mintedThis is the deposit script the relay uses today (v2). Δ == 0 and s == 0 revert, so a deposit can never be a silent donation. V == 0 while shares exist reverts. Every price must be non-zero and at most 10 minutes old. Every deposit mints at the live ratio, so an existing holder is not diluted by a new one.
Into an empty vault (S == 0), v2 requires at least $10 and locks 1,000 base units of the minted shares forever, the standard defence against the first-depositor share-inflation attack. The live vault already had supply when v2 was allowlisted; its protection is that only the vault's owner can deposit at all.
Redeeming
The redeem note burns s shares and releases, for each coin:
a_i = s · H_i / SNo price is read: a holder of s of S shares receives s/S of every holding. The vault's composition after a redemption is the same as before it. The relay then sells those coins for USDCx; that part is DEX execution, not vault math. See Selling.
What you actually get, end to end
| Buy | Sell | |
|---|---|---|
| Darwin fee | 30 bps of your USDCx | 30 bps of the USDCx proceeds |
| DEX execution | ~0.1–0.2% (market maker fee and spread) | same, usually a little higher |
| Vault math | Exact at Pragma prices | Exact, no price |
So a buy of $100 typically gives about $99.5–99.6 of NAV in BLUEDW, and a sell of $100 of NAV pays about $99.5. See Fees.
Where the prices come from
Inside the vault's notes, every price is a Pragma median read by foreign procedure invocation. The relay never supplies a price to the vault. Details and the pair table are on Oracle.
Prices outside the trade
| Where | Source |
|---|---|
| The trade preview | /api/nav-v, which reads the vault, the supply and Pragma from the node in one snapshot; the browser reads them itself only as a fallback |
GET /api/nav-v?faucet= | V and the per-coin holdings, computed from the vault and Pragma |
GET /api/price/BLUEDW | NAV per share, the time it was computed, and the real composition. This is the endpoint a wallet uses to price BLUEDW |
How the app prices a trade before you sign
The vault has not run yet when you decide, so the app computes the same quantities:
- the share supply
S, from the vault; - each coin's holding
H_i, from the vault; - each coin's Pragma median;
V = Σ H_i · p_i, then NAV= V / S.
The preview then subtracts Darwin's 30 bps. It cannot know the DEX execution in advance, so it is an estimate. The vault recomputes everything itself at settlement; a wrong preview costs precision, never correctness.
Drift between preview and fill
A minute or two passes between your signature and the vault's transaction. In that window, prices move and the DEX fills at the market. On a buy, the difference lands in the number of shares minted; on a sell, in the USDCx you receive. The app shows the realised amount once the trade settles, not the estimate it started from.