Skip to content

Commit 434b634

Browse files
committed
chore: clpy
1 parent 191803e commit 434b634

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pallets/subtensor/src/tests/children.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3590,7 +3590,7 @@ fn test_dynamic_parent_child_relationships() {
35903590
// Second epoch: 5/12 parent_stake
35913591

35923592
let expected_child1_stake = total_emission * rel_stake_child1_0
3593-
+ I96F32::from_num(stake_child1_0 + (total_parent_stake) * 1 / 4);
3593+
+ I96F32::from_num(stake_child1_0 + (total_parent_stake) / 4);
35943594
assert!(
35953595
(I96F32::from_num(stake_child1_2) - expected_child1_stake).abs()
35963596
/ expected_child1_stake
@@ -3605,7 +3605,7 @@ fn test_dynamic_parent_child_relationships() {
36053605
// Second epoch: 1/4 parent_stake + child1_stake
36063606

36073607
let expected_child2_stake = total_emission * rel_stake_child2_0
3608-
+ I96F32::from_num(stake_child2_0 + (total_parent_stake) * 1 / 3);
3608+
+ I96F32::from_num(stake_child2_0 + (total_parent_stake) / 3);
36093609
assert!(
36103610
(I96F32::from_num(stake_child2_2) - expected_child2_stake).abs()
36113611
/ expected_child2_stake

0 commit comments

Comments
 (0)