File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
pallets/subtensor/src/tests Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3590,7 +3590,7 @@ fn test_dynamic_parent_child_relationships() {
3590
3590
// Second epoch: 5/12 parent_stake
3591
3591
3592
3592
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 ) ;
3594
3594
assert ! (
3595
3595
( I96F32 :: from_num( stake_child1_2) - expected_child1_stake) . abs( )
3596
3596
/ expected_child1_stake
@@ -3605,7 +3605,7 @@ fn test_dynamic_parent_child_relationships() {
3605
3605
// Second epoch: 1/4 parent_stake + child1_stake
3606
3606
3607
3607
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 ) ;
3609
3609
assert ! (
3610
3610
( I96F32 :: from_num( stake_child2_2) - expected_child2_stake) . abs( )
3611
3611
/ expected_child2_stake
You can’t perform that action at this time.
0 commit comments