From 280a56b095081a55b43b85e7d2ca2b20b4b676b3 Mon Sep 17 00:00:00 2001 From: Mateusz Nowakowski Date: Tue, 26 Sep 2023 11:11:46 +0200 Subject: [PATCH] remove unnecessary pool promotion --- pallets/proof-of-stake/src/lib.rs | 1 - pallets/proof-of-stake/src/tests.rs | 5 ----- 2 files changed, 6 deletions(-) diff --git a/pallets/proof-of-stake/src/lib.rs b/pallets/proof-of-stake/src/lib.rs index b75a5a5800..911febfb85 100644 --- a/pallets/proof-of-stake/src/lib.rs +++ b/pallets/proof-of-stake/src/lib.rs @@ -1309,4 +1309,3 @@ impl LiquidityMiningApi for Pallet { // TODO: dedicated ensures for every activation kind // TODO: clean up test setup -// TODO: test schedule rewards without liquidity mining rewards diff --git a/pallets/proof-of-stake/src/tests.rs b/pallets/proof-of-stake/src/tests.rs index 0de86ee514..626729dc2a 100644 --- a/pallets/proof-of-stake/src/tests.rs +++ b/pallets/proof-of-stake/src/tests.rs @@ -1442,7 +1442,6 @@ fn user_can_claim_3rdparty_rewards() { let pair: (TokenId, TokenId) = (0u32.into(), 4u32.into()); let amount = 10_000u128; - ProofOfStake::update_pool_promotion(RuntimeOrigin::root(), LIQUIDITY_TOKEN, 1u8).unwrap(); ProofOfStake::reward_pool( RuntimeOrigin::signed(ALICE), pair, @@ -1520,7 +1519,6 @@ fn overlapping_3rdparty_rewards_works() { let pair: (TokenId, TokenId) = (0u32.into(), 4u32.into()); let amount = 10_000u128; - ProofOfStake::update_pool_promotion(RuntimeOrigin::root(), LIQUIDITY_TOKEN, 1u8).unwrap(); ProofOfStake::reward_pool( RuntimeOrigin::signed(ALICE), pair, @@ -1605,7 +1603,6 @@ fn reuse_activated_liquiddity_tokens_for_multiple_3rdparty_schedules() { let pair: (TokenId, TokenId) = (0u32.into(), 4u32.into()); let amount = 10_000u128; - ProofOfStake::update_pool_promotion(RuntimeOrigin::root(), LIQUIDITY_TOKEN, 1u8).unwrap(); ProofOfStake::reward_pool( RuntimeOrigin::signed(ALICE), pair, @@ -1691,7 +1688,6 @@ fn deactivate_3rdparty_rewards() { let pair: (TokenId, TokenId) = (0u32.into(), 4u32.into()); let amount = 10_000u128; - ProofOfStake::update_pool_promotion(RuntimeOrigin::root(), LIQUIDITY_TOKEN, 1u8).unwrap(); ProofOfStake::reward_pool( RuntimeOrigin::signed(ALICE), pair, @@ -1777,7 +1773,6 @@ fn claim_rewards_from_multiple_schedules_using_single_liquidity() { let pair: (TokenId, TokenId) = (0u32.into(), 4u32.into()); let amount = 10_000u128; - ProofOfStake::update_pool_promotion(RuntimeOrigin::root(), LIQUIDITY_TOKEN, 1u8).unwrap(); ProofOfStake::reward_pool( RuntimeOrigin::signed(ALICE), pair,