Forecasted earnings for IE contributors
patrickwoodhead opened this issue · comments
It would be cool if I could see the total rewards per round for an IE that I am considering contributing to. Then, if I could additionally see the current total number of current contributors on the IE, I can calculate an estimate of my expected earnings per round going forward. This will help me decide if I want to contribute to the IE or not.
You can already check the round reward:
await contract.roundReward() // -> uint
The contract doesn't store the count of contributors (yet), only the ones who have crossed the rewards threshold:
(await contract.readyForTransfer()).length
We can't keep track of the total participant count here, as this would explode the contract cost. We can however expose this from APIs, like spark-api
or spark-evaluate
. Wdyt?