Function spl_governance::addins::max_voter_weight::get_max_voter_weight_record_data_for_realm_and_governing_token_mint
source · pub fn get_max_voter_weight_record_data_for_realm_and_governing_token_mint(
program_id: &Pubkey,
max_voter_weight_record_info: &AccountInfo<'_>,
realm: &Pubkey,
governing_token_mint: &Pubkey
) -> Result<MaxVoterWeightRecord, ProgramError>
Expand description
Deserializes MaxVoterWeightRecord account, checks owner program and asserts it’s for the given realm and governing_token_mint