Open emizzle opened 1 month ago
Yeah, seems like it is not needed.
Good idea. The mapping is currently used to to decouple Proofs.sol from needing to know about requests. But we might as well use a virtual function slotProbability(SlotId)
for that, analogous to how we handle slot state: https://github.com/codex-storage/codex-contracts-eth/blob/fe8da1013d3b1270b3063147d8eb51550bd50f9c/contracts/Proofs.sol#L36
When a slot is filled, the proof probability is stored in a private mapping
_probabilities
. However, this is likely not needed as the proof probability for aRequest
is already stored inRequest.Ask
.This may require passing in the request Id.