codex-storage / nim-codex

Decentralized Durability Engine
Apache License 2.0
62 stars 23 forks source link

Add `proofProbability` into pricing structure #868

Open emizzle opened 1 month ago

emizzle commented 1 month ago

The pricing structure currently does not take into account the number of proofs (proofProbability) that an SP will need to provide for the duration of the contract. The more proofs required should equate to a higher payout. There are two options to solve this:

  1. add proofProbability into the pricePerSlot calculation, or
  2. add minPricePerProof in the Availability matching
AuHau commented 1 month ago

Yeah, makes sense, although I am not sure how this would get reflected in the pricePerSlot calculation? (I assume you mean the contract one, right?). I mean it can be a rather fluid parameter based on the gas situation on the chain, although I guess thanks to L2s this should not fluctuate that much.