-
Notifications
You must be signed in to change notification settings - Fork 5
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
BLOCKCHAIN-483 FE Congress close motions that have too many nay votes #311
base: develop
Are you sure you want to change the base?
BLOCKCHAIN-483 FE Congress close motions that have too many nay votes #311
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments, doesnt seem to work
@@ -25,6 +26,8 @@ export default function Motion({ | |||
|
|||
const isClosable = voting.ayes.length >= threshold; | |||
|
|||
const isClosableNaye = voting.nays.length >= 50; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be something like voting.nays.length > number_of_congressmen - threshold
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes i just take has more than 50 nay votes
from task, too literally
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
percent xD
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -58,7 +61,7 @@ export default function Motion({ | |||
<b> | |||
{voting.nays.length} | |||
/ | |||
{threshold} | |||
{(membersCount / 2).toFixed()} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't make sense. Why /2?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If anything this should be membersCount-threshold+1
, but TBH I expect this to confuse the hell out of people.
@@ -25,6 +26,8 @@ export default function Motion({ | |||
|
|||
const isClosable = voting.ayes.length >= threshold; | |||
|
|||
const isClosableNaye = voting.nays.length >= membersCount - threshold; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be a hard inequality (>
).
See my previous comment: #311 (comment)
Seems like there's still no understanding of how this works, so let me explain.
Motion can be "closed & executed", when there's enough ayes
votes to meet the threshold.
Motion can be "closed", when there's enough nays
that we already know that we can't get enough ayes
anymore to meet the threshold.
So a few samples:
- 3 members, threshold=2. So 1 nay is OK, but if we get 2 nays then there's only 1 more member left to
potentially cast aye, so we should show theclose
button - 4 members, threshold=3. So same as before - 1 nay is ok, but 2 nays leaves us with only 2 more potential ayes, which isn't enough for the threshold
- 10 members, threshold=6. Up to 4 nays is OK, as it still leaves 6 members to potentially cast aye. 5 nays is when we know that this will never pass and we can close.
No description provided.