File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
pallets/parachain-staking/src Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -4298,14 +4298,8 @@ fn api_get_unclaimed_staking_rewards() {
42984298 let rewards_1 = StakePallet :: get_unclaimed_staking_rewards ( & 1 ) ;
42994299 let rewards_2 = StakePallet :: get_unclaimed_staking_rewards ( & 2 ) ;
43004300 let rewards_3 = StakePallet :: get_unclaimed_staking_rewards ( & 3 ) ;
4301- assert_eq ! (
4302- 2 * rewards_1,
4303- rewards_3,
4304- ) ;
4305- assert_eq ! (
4306- rewards_2,
4307- inflation_config. delegator. reward_rate. per_block * stake * 2
4308- ) ;
4301+ assert_eq ! ( 2 * rewards_1, rewards_3, ) ;
4302+ assert_eq ! ( rewards_2, inflation_config. delegator. reward_rate. per_block * stake * 2 ) ;
43094303
43104304 // API and actual claiming should match
43114305 assert_ok ! ( StakePallet :: increment_collator_rewards( Origin :: signed( 1 ) ) ) ;
You can’t perform that action at this time.
0 commit comments