Metric Docs | Find Best Route
Understand the data required to compare Metric routes by output, depth, freshness and execution conditions before submitting a swap.
Understand the data required to compare Metric routes by output, depth, freshness and execution conditions before submitting a swap.
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 Find Best Route and the practical checks that matter when using or integrating the protocol.
Route objective
The best route is the one that optimizes the application’s objective after considering output, depth, freshness, gas and execution reliability.
Do not rank by headline price only
A nominally better price may not support the requested size or may be stale. Route ranking needs size-aware depth and validity checks.
Execution handoff
After selecting a route, translate it into bounded onchain execution and verify the resulting receipt and token balances.
Related Metric Docs
Last updated