diff --git a/programs/voter-stake-registry/tests/fixtures/mplx_rewards.so b/programs/voter-stake-registry/tests/fixtures/mplx_rewards.so index 99ab813e..fa34356e 100755 Binary files a/programs/voter-stake-registry/tests/fixtures/mplx_rewards.so and b/programs/voter-stake-registry/tests/fixtures/mplx_rewards.so differ diff --git a/programs/voter-stake-registry/tests/program_test/rewards.rs b/programs/voter-stake-registry/tests/program_test/rewards.rs index d1ea354e..9eabdbef 100644 --- a/programs/voter-stake-registry/tests/program_test/rewards.rs +++ b/programs/voter-stake-registry/tests/program_test/rewards.rs @@ -70,22 +70,10 @@ impl RewardsCookie { pub async fn distribute_rewards( &self, reward_pool: &Pubkey, - reward_mint: &Pubkey, distribute_authority: &Keypair, ) -> std::result::Result<(), BanksClientError> { - let (reward_vault, _bump) = Pubkey::find_program_address( - &[ - "vault".as_bytes(), - &reward_pool.to_bytes(), - &reward_mint.to_bytes(), - ], - &self.program_id, - ); - let accounts = vec![ AccountMeta::new(*reward_pool, false), - AccountMeta::new_readonly(*reward_mint, false), - AccountMeta::new(reward_vault, false), AccountMeta::new_readonly(distribute_authority.pubkey(), true), ]; diff --git a/programs/voter-stake-registry/tests/test_claim.rs b/programs/voter-stake-registry/tests/test_claim.rs index 09dfcf7f..8711a05d 100644 --- a/programs/voter-stake-registry/tests/test_claim.rs +++ b/programs/voter-stake-registry/tests/test_claim.rs @@ -192,7 +192,7 @@ async fn successeful_claim() -> Result<(), TransportError> { context .rewards - .distribute_rewards(&rewards_pool, reward_mint, &distribution_authority) + .distribute_rewards(&rewards_pool, &distribution_authority) .await?; context