Skip to content

Commit 279d215

Browse files
author
unconst
committed
fix min lock
1 parent f0ee331 commit 279d215

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pallets/subtensor/src/migrations/migrate_rao.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,15 @@ pub fn migrate_rao<T: Config>() -> Weight {
6161

6262
// Convert subnets and give them lock.
6363
// Set global weight to 18% from the start
64-
TaoWeight::<T>::set(332_041_393_326_771_929);
64+
// Set min lock
65+
NetworkMinLockCost::<T>::set( 1_000_000_000 );
66+
// Set tao weight.
67+
TaoWeight::<T>::set( 3_320_413_933_267_719_290 );
68+
6569
for netuid in netuids.iter().clone() {
6670
if *netuid == 0 {
6771
// Give root a single RAO in pool to avoid any catestrophic division by zero.
68-
SubnetAlphaIn::<T>::insert(netuid, 1);
72+
SubnetAlphaIn::<T>::insert(netuid, 1_000_000_000);
6973
SubnetMechanism::<T>::insert(netuid, 0); // Set to zero mechanism.
7074
TokenSymbol::<T>::insert(netuid, Pallet::<T>::get_symbol_for_subnet(0));
7175
continue;

0 commit comments

Comments
 (0)