pub fn update_stake_pool_balance(
    program_id: &Pubkey,
    stake_pool: &Pubkey,
    validator_list_storage: &Pubkey,
) -> Result<Instruction, ProgramError> {
    let accounts = vec![
        AccountMeta::new(*stake_pool, false),
        AccountMeta::new(*validator_list_storage, false),
        AccountMeta::new_readonly(sysvar::clock::id(), false),
    ];
    Ok(Instruction {
        program_id: *program_id,
        accounts,
        data: StakePoolInstruction::UpdateStakePoolBalance.try_to_vec()?,
    })
}
/// Creates `UpdateStakePoolBalance` instruction (pool balance from the stake account list balances)
Creates `UpdateStakePoolBalance` instruction (pool balance from the stake account list balances)
Creates ` UpdateStakePoolBalance ` instruction ( pool balance from the stake account list balances )
pub fn update_stake_pool_balance(
    program_id: &Pubkey,
    stake_pool: &Pubkey,
    validator_list_storage: &Pubkey,
) -> Result<Instruction, ProgramError> {
    let accounts = vec![
        AccountMeta::new(*stake_pool, false),
        AccountMeta::new(*validator_list_storage, false),
        AccountMeta::new_readonly(sysvar::clock::id(), false),
    ];
    Ok(Instruction {
        program_id: *program_id,
        accounts,
        data: StakePoolInstruction::UpdateStakePoolBalance.try_to_vec()?,
    })
}
pub fn update_stake_pool_balance ( program_id : & Pubkey , stake_pool : & Pubkey , validator_list_storage : & Pubkey , ) -> Result < Instruction , ProgramError > { let accounts = vec ! [ AccountMeta new ( stake_pool false ) AccountMeta new ( validator_list_storage false ) AccountMeta new_readonly ( sysvar clock id ( ) false ) ] ; Ok ( Instruction { program_id : * program_id , accounts , data : StakePoolInstruction :: UpdateStakePoolBalance . try_to_vec ( ) ? , } ) }
Creates `UpdateStakePoolBalance` instruction (pool balance from the stake account list balances)
Creates ` UpdateStakePoolBalance ` instruction ( pool balance from the stake account list balances )
program_id
&Pubkey
stake_pool
&Pubkey
validator_list_storage
&Pubkey