Skip to content

calculateEffectiveRate

calculateEffectiveRate(params): OutputType

Defined in: packages/synapse-core/src/warm-storage/calculate-effective-rate.ts:62

Calculate the expected FWSS recurring rate for a dataset size.

Returns two rates for different use cases:

  • ratePerEpoch — matches the on-chain rail rate (use for lockup math)
  • ratePerMonth — higher precision, linearly scalable (use for display)

Empty datasets have no recurring rate. Non-empty datasets pay the size-based storage rate plus the per-dataset proving service fee.

ParameterTypeDescription
paramsParamsTypecalculateEffectiveRate.ParamsType

OutputType

calculateEffectiveRate.OutputType