Update vote pass ratio

The vote pass ratio dictates how many 'for' over 'against' votes is needed in order for a proposal (e.g. project proposal) or for a complaint (e.g. complaint for a carbon credit batch) is needed to pass.

Current pass ratio value:

Initially this value is set to 2/3, which means that a vote will need around 66.67% 'for' votes in order to pass. If a authority account wishes to change this value he/she needs to call the update_vote_pass_ratio(new_proportion_part, new_upper_limit_part) functionality.

As the naming of the parameters would suggest, they represents the parts of the voting proportion. Additionally, if the new_upper_limit_part is set to 0 then the vote will pass when there is a 1 vote difference between the number of 'for' and 'against' votes. On the other hand, if the new_proportion_part is set to a value that is equal to or greater then the new_upper_limit_part the vote will pass only if every vote is a 'for' vote.

Last updated