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

improve handling of competition reward splits that don't sum to 100 #705

Open
dkent600 opened this issue Jan 7, 2020 · 1 comment
Open

Comments

@dkent600
Copy link
Contributor

dkent600 commented Jan 7, 2020

Currently we require that a reward split in a competition proposal must add to exactly 100. Perfect precision. It is hard then to have a close split between three winners, has to be 33-33-34. We would like to allow 33-33-33 with leftovers that will flow back to the dao, and even better, higher precision on the proportions to minimize the amount leftover, allowing us to get closer to a sum of 100.

@jellegerbrandy
Copy link
Contributor

The logic could be this:

When rewardsplit is [n0, n1, n2, ... nx] the individual rewards are n_i / (n0 + n1 + .. +nx)

For example:

rewardsplit [90,10] for first winner 90%, second place 10%

rewardsplit [1,1,1] for getting three equal parts

rweardplit [1,1] is equal to [50,50] -> two equal parts

etc.

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