From d5aa366ecfa9c5bcee66afbc93075a55c5bb49c8 Mon Sep 17 00:00:00 2001 From: Sorin Petreasca Date: Sun, 27 Oct 2024 16:40:24 +0200 Subject: [PATCH] test fixes --- dex/farm/tests/energy_update_test.rs | 3 +++ dex/farm/tests/total_farm_position_test.rs | 10 ++++++++++ 2 files changed, 13 insertions(+) diff --git a/dex/farm/tests/energy_update_test.rs b/dex/farm/tests/energy_update_test.rs index 1d8f78a98..a15fbc5e2 100644 --- a/dex/farm/tests/energy_update_test.rs +++ b/dex/farm/tests/energy_update_test.rs @@ -10,6 +10,7 @@ fn test_farm_setup() { farm::contract_obj, energy_factory_mock::contract_obj, energy_update::contract_obj, + permissions_hub::contract_obj, ); } @@ -19,6 +20,7 @@ fn test_energy_update() { farm::contract_obj, energy_factory_mock::contract_obj, energy_update::contract_obj, + permissions_hub::contract_obj, ); let first_farm_token_amount = 100_000_000; @@ -39,6 +41,7 @@ fn test_energy_update_no_claim_current_week() { farm::contract_obj, energy_factory_mock::contract_obj, energy_update::contract_obj, + permissions_hub::contract_obj, ); let first_farm_token_amount = 100_000_000; diff --git a/dex/farm/tests/total_farm_position_test.rs b/dex/farm/tests/total_farm_position_test.rs index b7ca1be7b..4bee74227 100644 --- a/dex/farm/tests/total_farm_position_test.rs +++ b/dex/farm/tests/total_farm_position_test.rs @@ -23,6 +23,7 @@ fn total_farm_position_claim_test() { farm::contract_obj, energy_factory_mock::contract_obj, energy_update::contract_obj, + permissions_hub::contract_obj, ); farm_setup.set_boosted_yields_rewards_percentage(BOOSTED_YIELDS_PERCENTAGE); @@ -128,6 +129,7 @@ fn allow_external_claim_rewards_setting_test() { farm::contract_obj, energy_factory_mock::contract_obj, energy_update::contract_obj, + permissions_hub::contract_obj, ); farm_setup.set_boosted_yields_rewards_percentage(BOOSTED_YIELDS_PERCENTAGE); @@ -194,6 +196,7 @@ fn total_farm_position_claim_for_other_test() { farm::contract_obj, energy_factory_mock::contract_obj, energy_update::contract_obj, + permissions_hub::contract_obj, ); farm_setup.set_boosted_yields_rewards_percentage(BOOSTED_YIELDS_PERCENTAGE); @@ -297,6 +300,7 @@ fn farm_total_position_migration_test() { farm::contract_obj, energy_factory_mock::contract_obj, energy_update::contract_obj, + permissions_hub::contract_obj, ); farm_setup.set_boosted_yields_rewards_percentage(BOOSTED_YIELDS_PERCENTAGE); @@ -414,6 +418,7 @@ fn farm_total_position_exit_migration_test() { farm::contract_obj, energy_factory_mock::contract_obj, energy_update::contract_obj, + permissions_hub::contract_obj, ); farm_setup.set_boosted_yields_rewards_percentage(BOOSTED_YIELDS_PERCENTAGE); @@ -494,6 +499,7 @@ fn farm_total_position_on_claim_migration_test() { farm::contract_obj, energy_factory_mock::contract_obj, energy_update::contract_obj, + permissions_hub::contract_obj, ); farm_setup.set_boosted_yields_rewards_percentage(BOOSTED_YIELDS_PERCENTAGE); @@ -584,6 +590,7 @@ fn farm_total_position_on_merge_migration_test() { farm::contract_obj, energy_factory_mock::contract_obj, energy_update::contract_obj, + permissions_hub::contract_obj, ); farm_setup.set_boosted_yields_rewards_percentage(BOOSTED_YIELDS_PERCENTAGE); @@ -678,6 +685,7 @@ fn no_boosted_rewards_penalty_for_no_energy_test() { farm::contract_obj, energy_factory_mock::contract_obj, energy_update::contract_obj, + permissions_hub::contract_obj, ); farm_setup.set_boosted_yields_rewards_percentage(BOOSTED_YIELDS_PERCENTAGE); @@ -758,6 +766,7 @@ fn total_farm_position_owner_change_test() { farm::contract_obj, energy_factory_mock::contract_obj, energy_update::contract_obj, + permissions_hub::contract_obj, ); farm_setup.set_boosted_yields_rewards_percentage(BOOSTED_YIELDS_PERCENTAGE); @@ -982,6 +991,7 @@ fn total_farm_position_through_simple_lock_test() { farm::contract_obj, energy_factory_mock::contract_obj, energy_update::contract_obj, + permissions_hub::contract_obj, ); let rust_zero = rust_biguint!(0);