BreadchainCoop / breadchain

0 stars 0 forks source link

Vote containing all zeros causes distributeYield() to revert #47

Closed subject026 closed 1 month ago

subject026 commented 1 month ago

Currently it is possible to submit a vote where all points values are zeros eg. [0, 0, 0] and this results in a divide by zero exception when distributeYield() is subsequently called.

subject026 commented 1 month ago

Rejecting a vote if all values are zero might be simplest solution.