Browse Source

daod bugfix win_votes / total_votes

narodnik 4 years ago
parent
commit
03e1c963dc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bin/daod/demo/main.py

+ 1 - 1
bin/daod/demo/main.py

@@ -901,7 +901,7 @@ class DaoExecProof:
 
         assert self.total_votes >= self.dao.quorum
 
-        assert self.win_votes >= self.dao.approval_ratio
+        assert self.win_votes / self.total_votes >= self.dao.approval_ratio
 
         return all([
             revealed.all_proposals == public.all_proposals,