Skip to content

Commit

Permalink
fix: calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
clockworkgr committed Dec 16, 2024
1 parent 400111b commit 8e4636a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/components/proposals/ProposalWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -330,15 +330,15 @@ const expectedResult = computed(() => {
if (turnout.value < quorum.value) {
return false;
} else {
if (no.value + nwv.value == 0) {
if (yes.value > 0) {
return true;
} else {
return false;
}
if (yes.value <= 0) {
return false;
} else {
if (yes.value / (no.value + nwv.value) > threshold.value) {
return true;
if (yes.value / (yes.value + no.value + nwv.value) > threshold.value) {
if (nwv.value / (yes.value + no.value + nwv.value) > veto_threshold.value) {
return false;
} else {
return true;
}
} else {
return false;
}
Expand Down

0 comments on commit 8e4636a

Please sign in to comment.