Skip to content

Commit

Permalink
total quorum check
Browse files Browse the repository at this point in the history
  • Loading branch information
dragos-rebegea committed Apr 9, 2024
1 parent ae6a9cf commit de594b3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions energy-integration/governance-v2/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,17 @@ pub trait GovernanceV2:
self.try_change_fee_token_id(fee_token);
}

#[endpoint]
fn upgrade(&self) {
&self,
proposal_id: ProposalId,
total_percentage: BigUint,
) {
let mut proposal = self.proposals().get(proposal_id);
proposal.total_quorum = total_percentage;
self.proposals().set(proposal_id, &proposal);
}

/// Propose a list of actions.
/// A maximum of MAX_GOVERNANCE_PROPOSAL_ACTIONS can be proposed at a time.
///
Expand Down

0 comments on commit de594b3

Please sign in to comment.