Closed subject026 closed 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.
[0, 0, 0]
distributeYield()
Rejecting a vote if all values are zero might be simplest solution.
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 whendistributeYield()
is subsequently called.