@@ -211,11 +211,10 @@ impl<T: Config> Pallet<T> {
211211 let symbol = Self :: get_next_available_symbol ( netuid_to_register) ;
212212 TokenSymbol :: < T > :: insert ( netuid_to_register, symbol) ;
213213
214- // Put initial TAO from lock into subnet TAO and produce numerically equal amount of Alpha
215- // The initial TAO is the locked amount, with a minimum of 1 RAO and a cap of 100 TAO.
216- let pool_initial_tao = Self :: get_network_min_lock ( ) ;
217- // FIXME: the result from function is used as a mixed type alpha/tao
218- let pool_initial_alpha = AlphaCurrency :: from ( Self :: get_network_min_lock ( ) . to_u64 ( ) ) ;
214+ // The initial TAO is the locked amount
215+ // Put initial TAO from lock into subnet TAO and produce numerically equal amount of Alpha.
216+ let pool_initial_tao: TaoCurrency = Self :: get_network_min_lock ( ) ;
217+ let pool_initial_alpha: AlphaCurrency = pool_initial_tao. to_u64 ( ) . into ( ) ;
219218 let actual_tao_lock_amount_less_pool_tao =
220219 actual_tao_lock_amount. saturating_sub ( pool_initial_tao) ;
221220
@@ -224,22 +223,13 @@ impl<T: Config> Pallet<T> {
224223 SubnetAlphaIn :: < T > :: insert ( netuid_to_register, pool_initial_alpha) ;
225224 SubnetOwner :: < T > :: insert ( netuid_to_register, coldkey. clone ( ) ) ;
226225 SubnetOwnerHotkey :: < T > :: insert ( netuid_to_register, hotkey. clone ( ) ) ;
227-
228- // ----- NEW: Make registration defaults explicit to mirror de‑registration cleanup -----
229- // Transfer gating and lock accounting
230226 TransferToggle :: < T > :: insert ( netuid_to_register, true ) ;
231227 SubnetLocked :: < T > :: insert ( netuid_to_register, pool_initial_tao) ;
232228 LargestLocked :: < T > :: insert ( netuid_to_register, pool_initial_tao. to_u64 ( ) ) ;
233-
234- // User‑provided reserves (liquidity) and out‑supply baselines
235229 SubnetTaoProvided :: < T > :: insert ( netuid_to_register, TaoCurrency :: ZERO ) ;
236230 SubnetAlphaInProvided :: < T > :: insert ( netuid_to_register, AlphaCurrency :: from ( 0 ) ) ;
237231 SubnetAlphaOut :: < T > :: insert ( netuid_to_register, AlphaCurrency :: from ( 0 ) ) ;
238-
239- // Market telemetry baselines
240232 SubnetVolume :: < T > :: insert ( netuid_to_register, 0u128 ) ;
241-
242- // Track burned/recycled amount for this registration
243233 RAORecycledForRegistration :: < T > :: insert (
244234 netuid_to_register,
245235 actual_tao_lock_amount_less_pool_tao,
@@ -302,6 +292,8 @@ impl<T: Config> Pallet<T> {
302292 Self :: set_immunity_period ( netuid, 5000 ) ;
303293 Self :: set_min_difficulty ( netuid, u64:: MAX ) ;
304294 Self :: set_max_difficulty ( netuid, u64:: MAX ) ;
295+ Self :: set_commit_reveal_weights_enabled ( netuid, true ) ;
296+ Self :: set_yuma3_enabled ( netuid, true ) ;
305297
306298 // Make network parameters explicit.
307299 if !Tempo :: < T > :: contains_key ( netuid) {
0 commit comments