Skip to content

Commit b85157e

Browse files
committed
use capacity_boost and StakingType to adjust capacity generation, add/adjust tests
1 parent b62de39 commit b85157e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pallets/capacity/src/tests/rewards_provider_tests.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ fn test_reward_pool_size_happy_path() {
5151
TestCase { total_staked: 0, expected_reward_pool: 0 },
5252
TestCase { total_staked: 4, expected_reward_pool: 0 },
5353
TestCase { total_staked: 10, expected_reward_pool: 1 },
54-
TestCase { total_staked: 333, expected_reward_pool: 33 },
54+
TestCase { total_staked: 3333333, expected_reward_pool: 333333 },
55+
TestCase { total_staked: 66666666, expected_reward_pool: 666666 },
5556
];
5657
let era = 20u32;
5758
CurrentEraInfo::<Test>::set(RewardEraInfo { era_index: era, started_at: 200u32 });

pallets/capacity/src/tests/unstaking_tests.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ use sp_core::bounded::BoundedVec;
1414
#[test]
1515
fn unstake_happy_path() {
1616
new_test_ext().execute_with(|| {
17+
// TODO: ProviderBoost
1718
let token_account = 200;
1819
let target: MessageSourceId = 1;
1920
let staking_amount = 100;

0 commit comments

Comments
 (0)