codex-storage / nim-codex

Decentralized Durability Engine
https://codex.storage
Apache License 2.0
69 stars 25 forks source link

Add `proofProbability` into pricing structure #868

Open emizzle opened 3 months ago

emizzle commented 3 months 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 3 months 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.