Fee Model for Storage

DataTie implements a fee model for storage that ensures replication and data availability. This fee model is based on a storage rental approach with a discounted payment flow. Users are required to pay the storage cost to the nodes hosting the shard data in order to store their data in the decentralized key-value (KV) store.

The fee model operates on an upfront payment system, where the user makes an initial payment at the time of storing data. This upfront payment is adjusted based on the storage device's IO performance. The payment is calculated using a discount rate (d) in seconds, which reflects the decreasing cost of storage over time. A constant (c) is used to adjust the base payment, and the upfront payment (x) at the genesis time is calculated as x = c/(1-d).

The upfront payment ensures that the user's data is stored in the network and replicated by the nodes hosting the shard data. The payment incentivizes the nodes to participate in the replication process, preventing data loss and ensuring data availability. In case the user replaces the value associated with the same key, there is no additional rental cost charged. However, normal gas fees may still apply.

DataTie allows users to receive a refund of their payment if they decide to remove their KV entry. The refund amount is calculated based on the time of removal (Tr) and is given by xdTr-T0, where T0 is the genesis time of the KV store.

DataTie's fee model for storage ensures replication and data availability by implementing a storage rental approach with upfront payments. The payment incentivizes nodes to host shard data and replicate it, thereby ensuring the security and availability of the stored data in the network.

Last updated