holium / ballot

An Urbit app for voting on proposals and polls.
MIT License
2 stars 0 forks source link

backend: poll scheduling and results calculations #2

Closed subnet-arts closed 2 years ago

subnet-arts commented 2 years ago

NOTE: Delegation feature not part of this task.

Testing

Test polling start/end timers.

Assuming changes to proposal poll start/end time:

1) ensure updates to proposal cancel existing timers 2) start new ones for new start/end timers

Tallies

Run thru each vote in a specified proposal by summing vote count per choice.

e.g.

{ "Allow": 14, "Reject": 20 }

calc w/ .5 score:

Result: Proposal rejected