Skip to main content

Module pricing

Module pricing 

Source
Expand description

Quadratic pricing with a baseline floor for ant-node.

Formula: price_per_chunk_ANT(n) = BASELINE + K × (n / D)²

The non-zero BASELINE makes empty nodes charge a meaningful spam-barrier price, and K is anchored so per-GB USD pricing matches real-world targets at the current ~$0.10/ANT token price. An earlier formula produced ~$25/GB at the lower stable boundary and ~$0/GB when nodes were empty — both unreasonable.

§Parameters

ConstantValueRole
BASELINE0.00390625 ANTPrice at empty (bootstrap-phase spam barrier)
K0.03515625 ANTQuadratic coefficient
D6000Lower stable boundary (records stored)

§Design Rationale

  • Empty / lightly loaded nodes charge the BASELINE floor, preventing free storage and acting as a bootstrap-phase spam barrier.
  • Moderately loaded nodes add a small quadratic contribution on top.
  • Heavily loaded nodes charge quadratically more, pushing clients toward less-loaded nodes elsewhere in the network.

Functions§

calculate_price
Calculate storage price in wei from the number of close records stored.
derive_records_stored_from_price
Derive the quoted record count from a quote price.