@@ -690,6 +690,7 @@ fn test_drain_base() {
690690 AlphaCurrency :: ZERO ,
691691 AlphaCurrency :: ZERO ,
692692 AlphaCurrency :: ZERO ,
693+ AlphaCurrency :: ZERO ,
693694 )
694695 } ) ;
695696}
@@ -705,6 +706,7 @@ fn test_drain_base_with_subnet() {
705706 AlphaCurrency :: ZERO ,
706707 AlphaCurrency :: ZERO ,
707708 AlphaCurrency :: ZERO ,
709+ AlphaCurrency :: ZERO ,
708710 )
709711 } ) ;
710712}
@@ -730,6 +732,7 @@ fn test_drain_base_with_subnet_with_single_staker_not_registered() {
730732 pending_alpha. into ( ) ,
731733 AlphaCurrency :: ZERO ,
732734 AlphaCurrency :: ZERO ,
735+ AlphaCurrency :: ZERO ,
733736 ) ;
734737 let stake_after =
735738 SubtensorModule :: get_stake_for_hotkey_and_coldkey_on_subnet ( & hotkey, & coldkey, netuid) ;
@@ -758,6 +761,7 @@ fn test_drain_base_with_subnet_with_single_staker_registered() {
758761 netuid,
759762 pending_alpha,
760763 AlphaCurrency :: ZERO ,
764+ pending_alpha,
761765 AlphaCurrency :: ZERO ,
762766 ) ;
763767 let stake_after =
@@ -802,6 +806,7 @@ fn test_drain_base_with_subnet_with_single_staker_registered_root_weight() {
802806 netuid,
803807 pending_alpha,
804808 pending_root_alpha,
809+ pending_alpha. saturating_add ( pending_root_alpha) ,
805810 AlphaCurrency :: ZERO ,
806811 ) ;
807812 let stake_after =
@@ -849,6 +854,7 @@ fn test_drain_base_with_subnet_with_two_stakers_registered() {
849854 netuid,
850855 pending_alpha,
851856 AlphaCurrency :: ZERO ,
857+ pending_alpha,
852858 AlphaCurrency :: ZERO ,
853859 ) ;
854860 let stake_after1 =
@@ -914,6 +920,7 @@ fn test_drain_base_with_subnet_with_two_stakers_registered_and_root() {
914920 netuid,
915921 pending_alpha,
916922 AlphaCurrency :: ZERO ,
923+ pending_alpha,
917924 AlphaCurrency :: ZERO ,
918925 ) ;
919926 let stake_after1 =
@@ -989,6 +996,7 @@ fn test_drain_base_with_subnet_with_two_stakers_registered_and_root_different_am
989996 netuid,
990997 pending_alpha,
991998 AlphaCurrency :: ZERO ,
999+ pending_alpha,
9921000 0 . into ( ) ,
9931001 ) ;
9941002 let stake_after1 =
@@ -1069,6 +1077,7 @@ fn test_drain_base_with_subnet_with_two_stakers_registered_and_root_different_am
10691077 netuid,
10701078 pending_alpha,
10711079 AlphaCurrency :: ZERO ,
1080+ pending_alpha,
10721081 AlphaCurrency :: ZERO ,
10731082 ) ;
10741083 let stake_after1 =
@@ -1130,6 +1139,7 @@ fn test_drain_alpha_childkey_parentkey() {
11301139 netuid,
11311140 pending_alpha,
11321141 AlphaCurrency :: ZERO ,
1142+ pending_alpha,
11331143 AlphaCurrency :: ZERO ,
11341144 ) ;
11351145 let parent_stake_after = SubtensorModule :: get_stake_for_hotkey_on_subnet ( & parent, netuid) ;
@@ -1355,6 +1365,7 @@ fn test_get_root_children_drain() {
13551365 alpha,
13561366 pending_alpha,
13571367 AlphaCurrency :: ZERO ,
1368+ pending_alpha,
13581369 AlphaCurrency :: ZERO ,
13591370 ) ;
13601371
@@ -1379,6 +1390,7 @@ fn test_get_root_children_drain() {
13791390 pending_alpha,
13801391 // pending_root1,
13811392 AlphaCurrency :: ZERO ,
1393+ pending_alpha,
13821394 AlphaCurrency :: ZERO ,
13831395 ) ;
13841396
@@ -1402,6 +1414,7 @@ fn test_get_root_children_drain() {
14021414 alpha,
14031415 pending_alpha,
14041416 AlphaCurrency :: ZERO ,
1417+ pending_alpha,
14051418 AlphaCurrency :: ZERO ,
14061419 ) ;
14071420
@@ -1490,6 +1503,7 @@ fn test_get_root_children_drain_half_proportion() {
14901503 alpha,
14911504 pending_alpha,
14921505 AlphaCurrency :: ZERO ,
1506+ pending_alpha,
14931507 AlphaCurrency :: ZERO ,
14941508 ) ;
14951509
@@ -1576,6 +1590,7 @@ fn test_get_root_children_drain_with_take() {
15761590 alpha,
15771591 pending_alpha,
15781592 AlphaCurrency :: ZERO ,
1593+ pending_alpha,
15791594 AlphaCurrency :: ZERO ,
15801595 ) ;
15811596
@@ -1663,6 +1678,7 @@ fn test_get_root_children_drain_with_half_take() {
16631678 alpha,
16641679 pending_alpha,
16651680 AlphaCurrency :: ZERO ,
1681+ pending_alpha,
16661682 AlphaCurrency :: ZERO ,
16671683 ) ;
16681684
@@ -2378,6 +2394,7 @@ fn test_drain_pending_emission_no_miners_all_drained() {
23782394 netuid,
23792395 emission,
23802396 AlphaCurrency :: ZERO ,
2397+ emission,
23812398 AlphaCurrency :: ZERO ,
23822399 ) ;
23832400
@@ -2451,6 +2468,7 @@ fn test_drain_pending_emission_zero_emission() {
24512468 0 . into ( ) ,
24522469 AlphaCurrency :: ZERO ,
24532470 AlphaCurrency :: ZERO ,
2471+ AlphaCurrency :: ZERO ,
24542472 ) ;
24552473
24562474 // Get the new stake of the hotkey.
@@ -2743,6 +2761,7 @@ fn test_drain_alpha_childkey_parentkey_with_burn() {
27432761 netuid,
27442762 pending_alpha,
27452763 AlphaCurrency :: ZERO ,
2764+ pending_alpha,
27462765 AlphaCurrency :: ZERO ,
27472766 ) ;
27482767 let parent_stake_after = SubtensorModule :: get_stake_for_hotkey_on_subnet ( & parent, netuid) ;
0 commit comments