Skip to content

Commit

Permalink
remove unnecessary pool promotion
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszaaa committed Sep 26, 2023
1 parent 5047104 commit 280a56b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion pallets/proof-of-stake/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1309,4 +1309,3 @@ impl<T: Config> LiquidityMiningApi for Pallet<T> {

// TODO: dedicated ensures for every activation kind
// TODO: clean up test setup
// TODO: test schedule rewards without liquidity mining rewards
5 changes: 0 additions & 5 deletions pallets/proof-of-stake/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 280a56b

Please sign in to comment.