Skip to content

Price policies

dalubank collects more than one price for many tokens each cycle — a market aggregate and an on-chain feed, sometimes more. A price policy decides which of those observations becomes the price a token is valued at. Most tokens need no thought here; policies exist for the few that do. Setting them is an operator task, under Operations.

What a policy actually does

Every cycle, dalubank gathers price observations for a token from its sources. A policy is the rule that picks one of them (or combines them) into the single price used for NAV and returns. The choice is recorded with the value, so a policy never hides how a number was reached — it stays re-explainable.

The default — you usually want this

Unless you say otherwise, a token uses the default policy: a confidence-ranked ladder that prefers the freshest, most trustworthy source available.

  1. A fresh, high-confidence market price (DefiLlama / CoinGecko).
  2. A fresh, high-confidence on-chain feed (Chainlink).
  3. A market price of any confidence.
  4. An on-chain feed of any confidence.
  5. If none is available — unpriced (left out of totals rather than guessed).

For the vast majority of tokens this is exactly right, and you never touch it.

When to override, and with what

Reach for a non-default policy only for a token the default handles poorly — usually one that's thinly traded, priced noisily, or better trusted from a single source:

Policy What it does Good for
Average The mean of every valid price this cycle. A token where you trust no single source more than the others and want to smooth per-source noise.
TWAP (4h / 12h / 24h) A time-weighted average over the last N hours of history. A token with a jumpy spot price, where a smoothed recent average is more representative.
Restrict to one source Any policy, but limited to a single source (e.g. Chainlink only). A token whose market aggregate is unreliable but whose on-chain feed is solid — or vice versa.

TWAP needs a little history

A time-weighted policy needs at least N hours of stored observations to produce a price. Until that history accrues, a TWAP-policy token can read as unpriced — expected, and it resolves itself as snapshots accumulate.

Two levels: global and per-portfolio

  • Per-token (global) — a policy set on the token applies everywhere that token is valued.
  • Per-portfolio override — a portfolio can override the policy for a specific token, so one portfolio can value a token differently from another without affecting anyone else.

A per-portfolio override takes precedence over the token's global policy for that portfolio only.

What a policy does not change

  • It never invents a price. If no source qualifies under the policy, the token stays unpriced — a policy can't manufacture a value.
  • It doesn't rewrite history. Changing a policy affects how future snapshots select a price; past snapshots keep the value and provenance they were recorded with.
  • It's not a valuation override. A policy chooses among real observed prices; it isn't a place to type in a price by hand (for an asset held nowhere else, that's a price mark).

See also