Skip to content

Commit

Permalink
add quadratic computation for voting power
Browse files Browse the repository at this point in the history
  • Loading branch information
dragos-rebegea committed Sep 27, 2023
1 parent 2571f42 commit 1792a0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion energy-integration/governance-v2/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ pub trait GovernanceV2:
let new_user = self.user_voted_proposals(&voter).insert(proposal_id);
require!(new_user, ALREADY_VOTED_ERR_MSG);

let voting_power = &user_quorum;
let voting_power = &user_quorum.sqrt();

match self.get_root_hash(proposal_id) {
OptionalValue::None => {
Expand Down

0 comments on commit 1792a0f

Please sign in to comment.