Skip to content

Commit

Permalink
test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
psorinionut committed Oct 27, 2024
1 parent 3ae3336 commit d5aa366
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dex/farm/tests/energy_update_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ fn test_farm_setup() {
farm::contract_obj,
energy_factory_mock::contract_obj,
energy_update::contract_obj,
permissions_hub::contract_obj,
);
}

Expand All @@ -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;
Expand All @@ -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;
Expand Down
10 changes: 10 additions & 0 deletions dex/farm/tests/total_farm_position_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit d5aa366

Please sign in to comment.