ant_node/payment/pricing.rs
1//! Quadratic pricing with a baseline floor.
2//!
3//! ADR-0004: the pricing formula is now the **single source of truth** in
4//! `ant-protocol` (`ant_protocol::payment::pricing`), so the node (when pricing
5//! a quote) and the client (when verifying the forced price before paying)
6//! compute byte-for-byte identical prices and can never drift. This module
7//! re-exports it so every existing `crate::payment::pricing::…` caller keeps
8//! working unchanged.
9//!
10//! See `ant-protocol/src/payment/pricing.rs` for the formula, constants, and
11//! the full unit-test suite.
12
13pub use ant_protocol::payment::pricing::{calculate_price, derive_records_stored_from_price};