Skip to main content

platform_version/version/fee/storage/
v1.rs

1use crate::version::fee::storage::FeeStorageVersion;
2
3// these fees were originally calculated based on a cost of 30 $ / Dash
4
5pub const FEE_STORAGE_VERSION1: FeeStorageVersion = FeeStorageVersion {
6    storage_disk_usage_credit_per_byte: 27000,
7    storage_processing_credit_per_byte: 400,
8    storage_load_credit_per_byte: 20,
9    non_storage_load_credit_per_byte: 10,
10    storage_seek_cost: 2000,
11    // Dead below protocol v14: the `ttl` grammar does not parse there, so
12    // no ephemeral-classified operation can exist and nothing reads this
13    // rate — carrying the live value here changes no released behavior.
14    //
15    // The rate prices a byte that provably lives at most one week (the
16    // `ttl` cap) plus a bounded drainage lag. Pro-rata against the
17    // perpetual-retention price (27,000 credits/byte distributed over ~50
18    // years) one week is ~10 credits/byte; 270 — one percent of the
19    // storage price — keeps a ~27x margin for the drainage work the
20    // triggering writes perform unbilled and for disk churn, while still
21    // making windowed (trending) writes two orders of magnitude cheaper
22    // than permanent ones.
23    ttl_ephemeral_disk_usage_credit_per_byte: 270,
24};