Skip to content

Commit

Permalink
fix: Pass perc calculation (#148)
Browse files Browse the repository at this point in the history
* fix: Pass perc calculation

* fix: calculation
  • Loading branch information
clockworkgr authored Dec 16, 2024
1 parent c500962 commit 6b3fd24
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/components/proposals/ProposalWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -330,11 +330,15 @@ const expectedResult = computed(() => {
if (turnout.value < quorum.value) {
return false;
} else {
if (nwv.value > veto_threshold.value) {
if (yes.value <= 0) {
return false;
} else {
if (yes.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 6b3fd24

Please sign in to comment.