use solana_client::rpc_client::RpcClient;
use solana_program::pubkey::Pubkey;
use common::command::{CliConfig, ProcessResult};
use common::contract::instructions::farming::quarry_mine::set_annual_rewards::new_set_annual_rewards;
use common::utils::send::send_tx;
pub fn process_farming_mine_rewarder_set_annual_rate(
rpc_client: &RpcClient,
config: &CliConfig,
rewarder: Pubkey,
rate: u64,
) -> ProcessResult {
let ixs = [
new_set_annual_rewards(
rewarder,
config.pubkey().unwrap(),
rate,
)
];
let res = send_tx(rpc_client, config, &ixs)?;
Ok("signers : ".to_owned() + res.to_string().as_str())
}