Oracle (Pragma FPI)

Every price the vault mints at is a Pragma median, read by the note itself, during the transaction that uses it.

Foreign procedure invocation

Miden lets an executing account call a procedure of another account and use the result, with the foreign account's state proven in the same transaction. The vault's deposit note uses it to call Pragma's oracle account and read each coin's median.

That removes the usual middle layer. There is no keeper writing prices into Darwin's storage, and the relay never hands the vault a price. The code that mints your shares is the code that read the price it minted them at.

Account (Miden mainnet)Id
Pragma oracle (the FPI target)0x8f8d747477ca171144feadc60a1137
Pragma publisher (fallback seed)0x0b7956bf6589079170e900eb69cd84

The publisher set can change. The app resolves the current publishers from the oracle's own publishers map at read time, so a rotation does not break pricing.

The pairs

The note passes each pair's fixed Pragma key, compiled into the script, and asks for a median no older than 10 minutes (Pragma publishes about every 30 seconds). The indices below are Darwin's own labels for the pairs.

IndexPairCoin in BLUEDW
1BTC/USDWBTC
2ETH/USDETH
15SOL/USDSOL

WBTC is priced off BTC/USD. The keys and the scale are constants in the note script, not values anyone supplies. A price of zero, or one older than 10 minutes, makes the deposit revert.

Where prices are used

WherePriceEffect
In-kind deposit (vault)Pragma, on-chainDecides how many shares are minted
In-kind redeem (vault)NonePro-rata release needs no price
Relay DEX ordersLive market pricesFloors for buy and sell orders; the relay refuses to place an order without a price
App preview, portfolio, price APIPragma, read off-chainDisplay only

The trust assumption

BLUEDW is worth what Pragma says WBTC, ETH and SOL are worth. A wrong median is a wrong mint, and nothing downstream fixes that. A manipulated app or relay cannot move the mint, because the vault reads the price itself. A manipulated or stale feed can. See Risks.