File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
pallets/subtensor/src/migrations Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ use alloc::string::String;
3
3
use frame_support:: IterableStorageMap ;
4
4
use frame_support:: { traits:: Get , weights:: Weight } ;
5
5
use sp_runtime:: format;
6
+ use substrate_fixed:: types:: I96F32 ;
6
7
use substrate_fixed:: types:: U64F64 ;
7
8
8
9
use super :: * ;
@@ -88,6 +89,7 @@ pub fn migrate_rao<T: Config>() -> Weight {
88
89
89
90
let remaining_lock = lock. saturating_sub ( pool_initial_tao) ;
90
91
// Refund the owner for the remaining lock.
92
+ SubnetMovingPrice :: < T > :: insert ( netuid, I96F32 :: from_num ( EmissionValues :: < T > :: get ( netuid) ) ) ;
91
93
Pallet :: < T > :: add_balance_to_coldkey_account ( & owner, remaining_lock) ;
92
94
SubnetLocked :: < T > :: insert ( netuid, 0 ) ; // Clear lock amount.
93
95
SubnetTAO :: < T > :: insert ( netuid, pool_initial_tao) ;
You can’t perform that action at this time.
0 commit comments