Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Metric Docs | How Metric Works

Learn how Metric Active Pools separate pricing from liquidity, quote around external references and route swaps through configurable onchain pools.

Learn how Metric Active Pools separate pricing from liquidity, quote around external references and route swaps through configurable onchain pools.

Metric is built around Active Pools: liquidity pools that use a Price Provider to supply bid, ask and reference prices instead of relying only on reserve ratios. This page focuses on How Metric Works and the practical checks that matter when using or integrating the protocol.

Pricing and liquidity are separate

The Price Provider gives the pool a bid, ask and reference price. The pool then uses its configured bins and spread logic to determine where liquidity is available and how a swap can execute.

Quote lifecycle

StepWhat happens
1. ReferenceProvider produces current pricing
2. ValidationFreshness and safeguards are checked
3. LiquidityEligible bins are evaluated
4. ExecutionThe swap consumes available liquidity under pool rules

When a pool should stop quoting

If reference data is stale, invalid or blocked by a safeguard, the safer behavior is to reject the trade. This protects LP capital from execution against obviously outdated information.

Last updated