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

Metric Docs | Integrate via Smart Contracts

Integrate Metric liquidity onchain by reading quotes, depth and routing contracts while handling approvals, limits and transaction validation.

Integrate Metric liquidity onchain by reading quotes, depth and routing contracts while handling approvals, limits and transaction validation.

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 Integrate via Smart Contracts and the practical checks that matter when using or integrating the protocol.

Onchain integration flow

Read the relevant quote or depth state, prepare token approvals, set execution bounds and call the router or pool method intended for your route.

Safety checks

Verify contract addresses, chain ID, token decimals, allowance target, minimum output and deadline-like protections where applicable.

Simulation before submission

Simulate or estimate the transaction when possible. A successful quote read does not guarantee the later state will remain executable.

Last updated