Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forecasted earnings for IE contributors #44

Open
patrickwoodhead opened this issue Oct 17, 2023 · 1 comment
Open

Forecasted earnings for IE contributors #44

patrickwoodhead opened this issue Oct 17, 2023 · 1 comment

Comments

@patrickwoodhead
Copy link

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.

@juliangruber
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants