File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -62,9 +62,9 @@ pub fn migrate_rao<T: Config>() -> Weight {
62
62
// Convert subnets and give them lock.
63
63
// Set global weight to 18% from the start
64
64
// Set min lock
65
- NetworkMinLockCost :: < T > :: set ( 1_000_000_000 ) ;
65
+ NetworkMinLockCost :: < T > :: set ( 1_000_000_000 ) ;
66
66
// Set tao weight.
67
- TaoWeight :: < T > :: set ( 3_320_413_933_267_719_290 ) ;
67
+ TaoWeight :: < T > :: set ( 3_320_413_933_267_719_290 ) ;
68
68
for netuid in netuids. iter ( ) . clone ( ) {
69
69
if * netuid == 0 {
70
70
// Give root a single RAO in pool to avoid any catestrophic division by zero.
Original file line number Diff line number Diff line change @@ -602,7 +602,7 @@ fn test_migrate_rao() {
602
602
assert_eq ! ( SubnetTAO :: <Test >:: get( netuid_1) , 1_000_000_000 ) ; // Always 1000000000
603
603
assert_eq ! ( SubnetAlphaIn :: <Test >:: get( netuid_0) , 1_000_000_000 ) ; // Always 1_000_000_000
604
604
assert_eq ! ( SubnetAlphaIn :: <Test >:: get( netuid_1) , 1_000_000_000 ) ; // Always 1_000_000_000
605
- assert_eq ! ( SubnetAlphaOut :: <Test >:: get( netuid_0) , 4 * stake_amount) ; // Root has everything.
605
+ assert_eq ! ( SubnetAlphaOut :: <Test >:: get( netuid_0) , 4 * stake_amount) ; // Root has everything.
606
606
assert_eq ! ( SubnetAlphaOut :: <Test >:: get( netuid_1) , 0 ) ; // No stake outstanding.
607
607
608
608
// Assert share information for hotkey1 on netuid_0
You can’t perform that action at this time.
0 commit comments