pub fn try_tip_vote(
        &mut self,
        governing_token_supply: u64,
        config: &GovernanceConfig,
        current_unix_timestamp: UnixTimestamp,
    ) {
        if let Some(tipped_state) = self.try_get_tipped_vote_state(governing_token_supply, config) {
            self.state = tipped_state;
            self.voting_completed_at = Some(current_unix_timestamp);
        }
    }
/// Checks if vote can be tipped and automatically transitioned to Succeeded or Defeated state
/// If the conditions are met the state is updated accordingly
Checks if vote can be tipped and automatically transitioned to Succeeded or Defeated state
If the conditions are met the state is updated accordingly
Checks if vote can be tipped and automatically transitioned to Succeeded or Defeated state If the conditions are met the state is updated accordingly
pub fn try_tip_vote(
        &mut self,
        governing_token_supply: u64,
        config: &GovernanceConfig,
        current_unix_timestamp: UnixTimestamp,
    ) {
        if let Some(tipped_state) = self.try_get_tipped_vote_state(governing_token_supply, config) {
            self.state = tipped_state;
            self.voting_completed_at = Some(current_unix_timestamp);
        }
    }
pub fn try_tip_vote ( & mut self , governing_token_supply : u64 , config : & GovernanceConfig , current_unix_timestamp : UnixTimestamp , ) { if let Some ( tipped_state ) = self . try_get_tipped_vote_state ( governing_token_supply , config ) { self . state = tipped_state ; self . voting_completed_at = Some ( current_unix_timestamp ) ; } }
Checks if vote can be tipped and automatically transitioned to Succeeded or Defeated state
If the conditions are met the state is updated accordingly
Checks if vote can be tipped and automatically transitioned to Succeeded or Defeated state If the conditions are met the state is updated accordingly
&mut self
governing_token_supply
u64
config
&GovernanceConfig
current_unix_timestamp
UnixTimestamp
&mut self
governing_token_supply
u64
config
&GovernanceConfig
current_unix_timestamp
UnixTimestamp