Metric Docs | Smart Contracts
Review the Metric smart-contract integration surface for quotes, depth, router execution and direct pool interaction.
Review the Metric smart-contract integration surface for quotes, depth, router execution and direct pool interaction.
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 Smart Contracts and the practical checks that matter when using or integrating the protocol.
Contract integration surface
Metric contract integrations can read quote/depth information and execute through router or pool paths. Use the deployment reference for the current chain.
Approval discipline
Approve only the intended token and spender. Applications may choose bounded allowances rather than unlimited approvals depending on UX and security policy.
Receipt validation
After submission, check status, logs and token deltas. A transaction hash alone does not prove the intended swap result occurred.
Related Metric Docs
Last updated